Home » pdfbox-1.1.0-src » org.apache.pdfbox.io » [javadoc | source]
org.apache.pdfbox.io
public interface: RandomAccess [javadoc | source]

All Known Implementing Classes:
    RandomAccessFile, RandomAccessBuffer

An interface to allow PDF files to be stored completely in memory or to use a scratch file on the disk.
Method from org.apache.pdfbox.io.RandomAccess Summary:
close,   length,   read,   read,   seek,   write,   write
Method from org.apache.pdfbox.io.RandomAccess Detail:
 public  void close() throws IOException
    Release resources that are being held.
 public long length() throws IOException
    The total number of bytes that are available.
 public int read() throws IOException
    Read a single byte of data.
 public int read(byte[] b,
    int offset,
    int length) throws IOException
    Read a buffer of data.
 public  void seek(long position) throws IOException
    Seek to a position in the data.
 public  void write(int b) throws IOException
    Write a byte to the stream.
 public  void write(byte[] b,
    int offset,
    int length) throws IOException
    Write a buffer of data to the stream.