sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Desruisseaux (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SIS-308) InputStream provided by StorageConnector not always at the beginning of the stream
Date Wed, 24 Feb 2016 15:54:18 GMT
Martin Desruisseaux created SIS-308:
---------------------------------------

             Summary: InputStream provided by StorageConnector not always at the beginning
of the stream
                 Key: SIS-308
                 URL: https://issues.apache.org/jira/browse/SIS-308
             Project: Spatial Information Systems
          Issue Type: Bug
          Components: Storage
    Affects Versions: 0.6, 0.5, 0.4, 0.3
            Reporter: Martin Desruisseaux
            Assignee: Martin Desruisseaux
             Fix For: 0.7


Call to {{StorageConnector.getStorageAs(InputStream.class)}} returns an {{InputStream}} which
does not read from the beginning of the stream if a call to {{StorageConnection.getStorageAs(…)}}
has been done before for another type.

The fix is to use {{InputStream.mark()}} when the other type is created and {{InputStream.reset()}}
when the {{InputStream}} is requested.




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message