Package org.apache.pdfbox.io
Interface RandomAccess
-
- All Superinterfaces:
RandomAccessRead,SequentialRead
- All Known Implementing Classes:
RandomAccessBuffer,RandomAccessFile
public interface RandomAccess extends RandomAccessRead
An interface to allow PDF files to be stored completely in memory or to use a scratch file on the disk.- Version:
- $Revision: 1.2 $
- Author:
- Ben Litchfield
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidwrite(byte[] b, int offset, int length)Write a buffer of data to the stream.voidwrite(int b)Write a byte to the stream.-
Methods inherited from interface org.apache.pdfbox.io.RandomAccessRead
getPosition, length, seek
-
Methods inherited from interface org.apache.pdfbox.io.SequentialRead
close, read, read
-
-
-
-
Method Detail
-
write
void write(int b) throws java.io.IOExceptionWrite a byte to the stream.- Parameters:
b- The byte to write.- Throws:
java.io.IOException- If there is an IO error while writing.
-
write
void write(byte[] b, int offset, int length) throws java.io.IOExceptionWrite a buffer of data to the stream.- Parameters:
b- The buffer to get the data from.offset- An offset into the buffer to get the data from.length- The length of data to write.- Throws:
java.io.IOException- If there is an error while writing the data.
-
-