[ 
https://issues.apache.org/jira/browse/PDFBOX-4855?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17120983#comment-17120983
 ] 

Andreas Lehmkühler commented on PDFBOX-4855:
--------------------------------------------

I've added an implementation for RandomAccessRead based on memory mapped file 
reading. For now the maximum file size is Integer.MAX_VALUE and the whole file 
is mapped to memory. I've replaced RandomAccessReadFile with 
RandomAccessReadMemoryMappedFile and removed the no longer needed class.

The file size limitation could be removed if needed by implementing pagination.

> Add support for memory mapped file reading
> ------------------------------------------
>
>                 Key: PDFBOX-4855
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4855
>             Project: PDFBox
>          Issue Type: Improvement
>          Components: Parsing
>    Affects Versions: 3.0.0 PDFBox
>            Reporter: Andreas Lehmkühler
>            Assignee: Andreas Lehmkühler
>            Priority: Major
>             Fix For: 3.0.0 PDFBox
>
>
> We should add a RandomAccessRead implementation which supports memory mapped 
> file reading



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org

Reply via email to