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

Better distinction between IOException and TikaException

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.4
    • Component/s: parser
    • Labels:
      None

      Description

      As discussed on the mailing list (http://markmail.org/message/qspwa2nqq5fksccs), many parser libraries throw IOExceptions even for errors that are not caused by problems reading bytes from the given document input stream. Tika should do a better job of catching such exceptions and converting them to TikaExceptions to better meet the Parser interface contract.

      In Commons IO I just added a TaggedInputStream class (see IO-192) that is designed for better handling such cases.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: