Eric Leleu created PDFBOX-1387:
----------------------------------

             Summary: Create NonSequentialParser with InputStream
                 Key: PDFBOX-1387
                 URL: https://issues.apache.org/jira/browse/PDFBOX-1387
             Project: PDFBox
          Issue Type: Improvement
          Components: Parsing, Preflight
    Affects Versions: 1.7.1
            Reporter: Eric Leleu
         Attachments: InputStream_NonSequentialParser.patch

Hi,

Currently the NonSequentialParser can't be initialized using an InputStream.
To allow the PreflightParser to inherit from the NonSequentialParser, I have 
create a constructor that takes an InputStream as parameter. 

In attachment you can find a patch that :
- Creates a TmpFile with the given InputStream in the constructor method
- Deletes the TmpFile at the end of the parse method.
- call the parseObjectDynamically method on the Trailer entries (useful for 
Preflight module)

What is your opinion about this proposal.

Regards,
Eric





--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to