You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "Andrew Jackson (JIRA)" <ji...@apache.org> on 2013/05/01 15:26:16 UTC

[jira] [Created] (TIKA-1117) IWorkPackageParser should not close the InputStream

Andrew Jackson created TIKA-1117:
------------------------------------

             Summary: IWorkPackageParser should not close the InputStream
                 Key: TIKA-1117
                 URL: https://issues.apache.org/jira/browse/TIKA-1117
             Project: Tika
          Issue Type: Bug
          Components: parser
    Affects Versions: 1.3
            Reporter: Andrew Jackson
            Priority: Minor


I am using the Tika parser framework embedded in another application, i.e. I am controlling the output InputStream which is then wrapped as a TikaInputStream and parsed. Under these circumstances, I run into problems due to the IWorkPackageParser closing the InputStream. See org.apache.tika.parser.iwork.IWorkPackageParser.parse(IWorkPackageParser.java:219)

I can avoid this by wrapping my stream in a CloseShieldInputStream, but I suspect this may cause problems more widely. I believe that any Tika Parser implementation should not close the InputStream it is passed, and therefore the .close() call in the IWorkPackageParser should be removed.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira