Tilman is right. I reread the javadoc and my first intention was correct. "0" is
never returned. However, I've simplified the code.
Thanks for your input!
Andreas
Am 27.02.21 um 04:43 schrieb Tilman Hausherr:
Am 26.02.2021 um 15:26 schrieb Jason Pyeron:
input.read(eofCheck) == 0 is not an EOF!
How would this ever happen that the result of that specific call is 0? eofCheck
is one bytes long and the javadoc says "This method blocks until input data is
available, end of file is detected, or an exception is thrown." and "at least
one byte is read".
Tilman
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org