Uploaded image for project: 'Apache Jena'
  1. Apache Jena
  2. JENA-6

Need a consistent policy on closing streams for Jena readers

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • Jena 2.10.0
    • RIOT
    • None

    Description

      See also https://sourceforge.net/tracker/?func=detail&aid=3067790&group_id=40417&atid=430288

      Jena readers do not provide any gaurantees as to the state of the stream in terms of byte position after parsing. RIOT, and some original readers, also close the stream, on the principle the stream is no longer usable.

      But Java zip streams signal end of stream but can continue to be read by moving to the next zip file entry. Closing the stream after parsing is wrong in this case.

      The original report noted a wrapper can be used that does not pass through the .close.

      Attachments

        Activity

          People

            andy Andy Seaborne
            andy Andy Seaborne
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: