Uploaded image for project: 'Tika'
  1. Tika
  2. TIKA-45

RereadableInputStream needs to be able to read to the end of the original stream on first rewind.

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.1-incubating
    • Fix Version/s: 0.1-incubating
    • Component/s: general
    • Labels:
      None

      Description

      RereadableInputStream reads a stream's content into a store (memory or file) on its first pass. If rewind() is called before end of stream is reached, the bytes not yet read will not be available on subsequent reads of the RereadableInputStream. This could be a problem, for example, if a parser uses it to get metadata from the beginning of a stream and calls rewind(), expecting to get the entire document.

        Attachments

        1. tika45.patch
          12 kB
          Keith Bennett
        2. RereadableInputStreamTest.java
          4 kB
          Keith Bennett
        3. RereadableInputStream.java
          9 kB
          Keith Bennett

          Activity

            People

            • Assignee:
              jukkaz Jukka Zitting
              Reporter:
              kbennett Keith Bennett
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: