eclipse-ee4j / jaxb-fi

Apache License 2.0
8 stars 10 forks source link

Decoding of several FI-Documents in 1 InputStream fails #38

Open Tomas-Kraus opened 13 years ago

Tomas-Kraus commented 13 years ago

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]

Tomas-Kraus commented 5 years ago
Tomas-Kraus commented 13 years ago

@glassfishrobot Commented Reported by tsen

Tomas-Kraus commented 13 years ago

@glassfishrobot Commented File: decoder.diff Attached By: tsen

Tomas-Kraus commented 7 years ago

@glassfishrobot Commented This issue was imported from java.net JIRA FI-38