org.pdfbox.io
Class RandomAccessFile
java.lang.Object
org.pdfbox.io.RandomAccessFile
- RandomAccess
public class RandomAccessFile
extends java.lang.Object
An interface to allow temp PDF data to be stored in a scratch
file on the disk to reduce memory consumption.
RandomAccessFile
public RandomAccessFile(File file,
String mode)
throws FileNotFoundException
Constructor.
file
- The file to write the data to.mode
- The writing mode.
read
public int read(byte[] b,
int offset,
int length)
throws IOException
- read in interface RandomAccess
seek
public void seek(long position)
throws IOException
- seek in interface RandomAccess
write
public void write(byte[] b,
int offset,
int length)
throws IOException
- write in interface RandomAccess