[ 
https://issues.apache.org/jira/browse/OAK-956?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13829072#comment-13829072
 ] 

Alexander Klimetschek edited comment on OAK-956 at 11/21/13 4:27 PM:
---------------------------------------------------------------------

No, returning zero means the end of the inputstream has reached.

This is a regression: with the FileDataStore in Jackrabbit 2, which effectively 
used a FileInputStream, this worked. The FIS has the same situation, sometimes 
returning less bytes, but it implements available() properly. The code in Sling 
using the BIS is taken from Tomcat and stable.


was (Author: alexander.klimetschek):
No, returning zero means the end of the inputstream has reached.

This is a regression: with Jackrabbit, which effectively used a 
FileInputStream, this worked. The FIS has the same situation, sometimes 
returning less bytes, but it implements available() properly. The code in Sling 
using the BIS is taken from Tomcat and stable.

> 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)

Reply via email to