Description
Calling ParsingReader.read on an "empty" reader throws an exception:
org.apache.tika.exception.ZeroByteFileException: InputStream must have > 0 bytes
However, according to the Reader documentation:
Returns: The number of characters read, or -1 if the end of the stream has been reached
So this method should return a -1 instead.