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 (Created) (JIRA)" <ji...@apache.org> on 2012/01/18 11:17:39 UTC

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

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


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

        

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

Posted by "Timo Boehme (Closed) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PDFBOX-1211?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Timo Boehme closed PDFBOX-1211.
-------------------------------

       Resolution: Fixed
    Fix Version/s: 1.7.0
         Assignee: Timo Boehme

commited with revision 1298775
                
> 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
>            Assignee: Timo Boehme
>            Priority: Minor
>             Fix For: 1.7.0
>
>         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

        

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

Posted by "Timo Boehme (Updated) (JIRA)" <ji...@apache.org>.
     [ 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

        

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

Posted by "Timo Boehme (Updated) (JIRA)" <ji...@apache.org>.
     [ 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

        

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

Posted by "Timo Boehme (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PDFBOX-1211?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

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

    Attachment: 2012-01-18_RandomAccess.patch

patch for o.a.p.io.RandomAccess using new RandomAccessRead
                
> 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