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

Need a consistent policy on closing streams for Jena readers

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Jena 2.10.0
    • Component/s: RIOT
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: