Package org.apache.pdfbox.io
Interface RandomAccessStreamCache
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Implementing Classes:
RandomAccessStreamCacheImpl,ScratchFile
An interface describing a StreamCache to be used when creating/writing streams of a PDF.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface -
Method Summary
Modifier and TypeMethodDescriptionCreates an instance of a buffer implementing the interface org.apache.pdfbox.io.RandomAccess.
-
Method Details
-
createBuffer
Creates an instance of a buffer implementing the interface org.apache.pdfbox.io.RandomAccess. The caller should close the buffer after usage otherwise the buffer shall be closed once the underlying RandomAccessStreamCache is closed.- Returns:
- the instance of the buffer
- Throws:
IOException- if something went wrong
-