org.pdfbox.io

Class RandomAccessBuffer

Implemented Interfaces:
RandomAccess

public class RandomAccessBuffer
extends java.lang.Object
implements RandomAccess

An interface to allow PDF files to be stored completely in memory.
Version:
$Revision: 1.2 $
Author:
Ben Litchfield

Constructor Summary

RandomAccessBuffer()
Default constructor.

Method Summary

void
close()
long
length()
int
read()
int
read(byte[] b, int offset, int length)
void
seek(long position)
void
write(byte[] b, int offset, int length)
void
write(int b)

Constructor Details

RandomAccessBuffer

public RandomAccessBuffer()
Default constructor.

Method Details

close

public void close()
            throws IOException
Specified by:
close in interface RandomAccess

length

public long length()
            throws IOException
Specified by:
length in interface RandomAccess

read

public int read()
            throws IOException
Specified by:
read in interface RandomAccess

read

public int read(byte[] b,
                int offset,
                int length)
            throws IOException
Specified by:
read in interface RandomAccess

seek

public void seek(long position)
            throws IOException
Specified by:
seek in interface RandomAccess

write

public void write(byte[] b,
                  int offset,
                  int length)
            throws IOException
Specified by:
write in interface RandomAccess

write

public void write(int b)
            throws IOException
Specified by:
write in interface RandomAccess