Using a SAX parser with a socket inputStream.
1 posts in topic
Flat View  Flat View

Posted By:   Patrick_Armstrong
Posted On:   Friday, June 29, 2001 05:02 PM

I have a parser that works well with a File or URI inputSource. When I try to have another thread connect via socket and send the file contents over the socket, I get a timeout exception. I echo the contents to a file as I send it and it appears to all go out correctly. How do I get this to work.

Re: Using a SAX parser with a socket inputStream.

Posted By:   Andy_Caulkett  
Posted On:   Friday, December 21, 2001 02:31 AM

I have had similar problem using SAX2 ... if you push enough data at it the parser will start parsing. This suggests that there is some internal buffer in the parser (may be somebody has views on this). It is not the buffer on the socket as I have tried altering that.

However, I am trying to move from SAX1 where this does work without a problem and as you push a character into the stream it comes out the other end.

Maybe somebody else out there has comments on this?
About | Sitemap | Contact