[
https://issues.apache.org/jira/browse/OAK-956?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13829135#comment-13829135
]
Jukka Zitting commented on OAK-956:
-----------------------------------
bq. Please read the javadoc: returning zero in available() means the
inputstream is at its end.
You mean
[InputStream.available()|http://docs.oracle.com/javase/7/docs/api/java/io/InputStream.html#available()]?
It says:
{quote}
an estimate of the number of bytes that can be read (or skipped over) from this
input stream without blocking or 0 when it reaches the end of the input stream
{quote}
The "0 when it reaches the end of the input stream" does not imply that the
method couldn't return 0 at other times. The "or" is not exclusive.
> SegmentStream doesn't implement the method available()
> ------------------------------------------------------
>
> Key: OAK-956
> URL: https://issues.apache.org/jira/browse/OAK-956
> Project: Jackrabbit Oak
> Issue Type: Bug
> Components: core
> Reporter: Antonio Sanso
>
> org.apache.jackrabbit.oak.plugins.segment.SegmentStream doesn't implement
> the method available()
> {code}
> Value.getStream().available()
> {code}
> will always return 0
--
This message was sent by Atlassian JIRA
(v6.1#6144)