[
https://issues.apache.org/jira/browse/PDFBOX-1211?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Timo Boehme updated PDFBOX-1211:
--------------------------------
Attachment: RandomAccessRead.java
extension of SequentialRead adding random access via seek and length method
> 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: 2012-01-18_RandomAccess.patch, RandomAccessRead.java,
> 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