You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Eric Leleu (JIRA)" <ji...@apache.org> on 2012/08/06 22:33:03 UTC

[jira] [Updated] (PDFBOX-1387) Create NonSequentialParser with InputStream

     [ https://issues.apache.org/jira/browse/PDFBOX-1387?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Eric Leleu updated PDFBOX-1387:
-------------------------------

    Attachment: InputStream_NonSequentialParser.patch
    
> 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