public class BufferedRAFInputStream extends InputStream
Constructor and Description |
---|
BufferedRAFInputStream(RandomAccessFile file)
Creates a new
BufferedRafInputStream on top of a random
access file |
Modifier and Type | Method and Description |
---|---|
int |
available() |
void |
close() |
long |
getFilePointer()
Returns the position of the filepointer
|
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
void |
seek(long n)
Seeks to the indicated position
|
long |
skip(long n) |
mark, markSupported, reset
public BufferedRAFInputStream(RandomAccessFile file) throws IOException
BufferedRafInputStream
on top of a random
access filefile
- The RAFIOException
public int read() throws IOException
read
in class InputStream
IOException
InputStream.read()
public int read(byte[] b) throws IOException
read
in class InputStream
IOException
InputStream.read(byte[])
public int read(byte[] b, int off, int len) throws IOException
read
in class InputStream
IOException
InputStream.read(byte[], int, int)
public long skip(long n) throws IOException
skip
in class InputStream
IOException
InputStream.skip(long)
public void seek(long n) throws IOException
n
- IOException
public long getFilePointer() throws IOException
IOException
public int available() throws IOException
available
in class InputStream
IOException
InputStream.available()
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class InputStream
IOException
InputStream.close()
"Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"