Top Description Inners Methods
org.apache.pdfbox.io

public Interface RandomAccessStreamCache

extends Closeable
Known Direct Implementers
org.apache.pdfbox.io.RandomAccessStreamCacheImpl, org.apache.pdfbox.io.ScratchFile
Imports
java.io.Closeable, .IOException

An interface describing a StreamCache to be used when creating/writing streams of a PDF.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static interface

Method Summary

Modifier and TypeMethod and Description
public RandomAccess

Returns:

the instance of the buffer
createBuffer
()

Creates an instance of a buffer implementing the interface org.apache.pdfbox.io.RandomAccess.

Inherited from java.io.Closeable:
close

Method Detail

createBufferback to summary
public RandomAccess createBuffer() throws IOException

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

the instance of the buffer

Exceptions
IOException:
if something went wrong
org.apache.pdfbox.io back to summary

public Interface RandomAccessStreamCache.StreamCacheCreateFunction

Annotations
@FunctionalInterface

Method Summary

Modifier and TypeMethod and Description
public RandomAccessStreamCache

Returns:

the stream cache.
create
()

Creates an instance of a RandomAccessStreamCache.

Method Detail

createback to summary
public RandomAccessStreamCache create() throws IOException

Creates an instance of a RandomAccessStreamCache.

Returns:RandomAccessStreamCache

the stream cache.

Exceptions
IOException:
if something went wrong