[
https://issues.apache.org/jira/browse/TIKA-2637?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16716356#comment-16716356
]
Furkan KAMACI commented on TIKA-2637:
-------------------------------------
Is there any progress for that?
> ParsingReader.read throws exception when no bytes are available
> ---------------------------------------------------------------
>
> Key: TIKA-2637
> URL: https://issues.apache.org/jira/browse/TIKA-2637
> Project: Tika
> Issue Type: Bug
> Reporter: Boris Petrov
> Priority: Critical
>
> Calling ParsingReader.read on an "empty" reader throws an exception:
> {noformat}
> org.apache.tika.exception.ZeroByteFileException: InputStream must have > 0
> bytes
> {noformat}
> However, according to the Reader documentation:
> {noformat}
> Returns:
> The number of characters read, or -1 if the end of the stream has been reached
> {noformat}
> So this method should return a -1 instead.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)