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.
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]