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

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.1-incubating
    • 0.1-incubating
    • general
    • 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. RereadableInputStreamTest.java
          4 kB
          Keith Bennett
        2. RereadableInputStream.java
          9 kB
          Keith Bennett
        3. tika45.patch
          12 kB
          Keith Bennett

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: