Decoding of several FI-Documents in 1 InputStream fails
Tomas-Kraus opened this issue · comments
I want to read several unrelated FI documents from one InputStream (network connection). This fails, because the method Decoder._isFastInfosetDocument() expect the binary header to be at the beginning of the _octetBuffer. It would be nice, when _isFastInfosetDocument() would check for the binary header at the current position of the _octetBuffer.
A unfied diff to achieve this behavior based on revision 858 of the FastInfoset-1_2-branch is included.
Environment
Java 1.6
Affected Versions
[1.2.9]
- Issue Imported From: https://github.com/javaee/metro-fi/issues/38
- Original Issue Raised By:@glassfishrobot
- Original Issue Assigned To: @glassfishrobot
@glassfishrobot Commented
Reported by tsen
@glassfishrobot Commented
File: decoder.diff
Attached By: tsen
@glassfishrobot Commented
This issue was imported from java.net JIRA FI-38