You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Timo Boehme (Updated) (JIRA)" <ji...@apache.org> on 2012/01/18 11:19:40 UTC

[jira] [Updated] (PDFBOX-1211) Refactor IO interfaces + PATCH

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

Timo Boehme updated PDFBOX-1211:
--------------------------------

    Attachment: SequentialRead.java

base IO interface for sequential reads only
                
> Refactor IO interfaces + PATCH
> ------------------------------
>
>                 Key: PDFBOX-1211
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1211
>             Project: PDFBox
>          Issue Type: Improvement
>          Components: Utilities
>    Affects Versions: 1.6.0
>            Reporter: Timo Boehme
>            Priority: Minor
>         Attachments: SequentialRead.java
>
>
> The new (more) conforming PDF parsers (PDFBOX-1000, PDFBOX-1199) have other access requirements on the input data than the current parser. Depending on the component (Lexer, Parser) a sequential read or random read is needed. In order to support multiple kinds of sources the access should be defined via interfaces which allows different implementations (files, streams, ...). Since PDFBox already has a RandomAccess interface the most compatible solution is to split it up into an interface hierarchy: RandomAccess extends RandomAccessRead extends SequentialRead.
> Attached are the new classes RandomAccessRead and SequentialRead as well as the patch for RandomAccess.
>  

--
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