org.pdfbox.io
Class RandomAccessFileInputStream
java.lang.Object
java.io.InputStream
org.pdfbox.io.RandomAccessFileInputStream
- All Implemented Interfaces:
- Closeable
public class RandomAccessFileInputStream
- extends InputStream
This class allows a section of a RandomAccessFile to be accessed as an
input stream.
- Version:
- $Revision: 1.3 $
- Author:
- Ben Litchfield (ben@csh.rit.edu)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RandomAccessFileInputStream
public RandomAccessFileInputStream(RandomAccessFile raFile,
long startPosition,
long length)
- Constructor.
- Parameters:
raFile
- The file to read the data from.startPosition
- The position in the file that this stream starts.length
- The length of the input stream.
available
public int available()
- Overrides:
available
in class InputStream
- See Also:
InputStream.available()
close
public void close()
- Specified by:
close
in interface Closeable
- Overrides:
close
in class InputStream
- See Also:
InputStream.close()
read
public int read()
throws IOException
- Specified by:
read
in class InputStream
- Throws:
IOException
- See Also:
InputStream.read()
read
public int read(byte[] b,
int offset,
int length)
throws IOException
- Overrides:
read
in class InputStream
- Throws:
IOException
- See Also:
InputStream.read( byte[], int, int )
skip
public long skip(long amountToSkip)
- Overrides:
skip
in class InputStream
- See Also:
InputStream.skip( long )
Copyright © 2006-2007 EGIZ - E-Government Innovationszentrum. All Rights Reserved.