You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by bu...@apache.org on 2001/03/18 19:57:27 UTC
[Bug 1013] New - not really a bug, but unexpected, undocumented beaviour !
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1013
*** shadow/1013 Sun Mar 18 10:57:27 2001
--- shadow/1013.tmp.1224 Sun Mar 18 10:57:27 2001
***************
*** 0 ****
--- 1,34 ----
+ +============================================================================+
+ | not really a bug, but unexpected, undocumented beaviour ! |
+ +----------------------------------------------------------------------------+
+ | Bug #: 1013 Product: Xerces-J |
+ | Status: NEW Version: 1.3.0 |
+ | Resolution: Platform: All |
+ | Severity: Minor OS/Version: All |
+ | Priority: Component: SAX |
+ +----------------------------------------------------------------------------+
+ | Assigned To: xerces-j-dev@xml.apache.org |
+ | Reported By: treguy@chez.com |
+ | CC list: Cc: |
+ +----------------------------------------------------------------------------+
+ | URL: |
+ +============================================================================+
+ | DESCRIPTION |
+ I needed to transform XML datas from an InputStream.
+ Since that InputSource is from a Socket, and since I do not want to use
+ stream.close() (wich inplie socket.close() !) to 'tell' that the XML sending is
+ done, I made my own InputStream, wich get a '0' has an 'EndOfData' signal.
+
+ Though this work to send all my messages, and construct String from them, it do
+ not work with transformer.transforme(zeroTerminatedInputStream).
+
+ The problem is that when my stream receive a second message, it stop
+ considering that 'EndOfData' is reached, and no longer return '-1' when it's
+ read. BUT, while parsing the stream, Xerces need TWO '-1' to
+ the 'inputstream.read()' : the first make read return a number < than the
+ amount of byte wanted, and the second make read return '-1'.
+
+ Since returning '-1' only once cause transformer.transform(InputStream) non-
+ returning, but cause no prroblem with other object, this -might- be considered
+ has a bug, or at least somthing that the doc must warn you about... don't you
+ think ?
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org