public class BufferedRAFInputStream
extends java.io.InputStream
Constructor and Description |
---|
BufferedRAFInputStream(java.io.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) |
public BufferedRAFInputStream(java.io.RandomAccessFile file) throws java.io.IOException
BufferedRafInputStream
on top of a random
access filefile
- The RAFjava.io.IOException
public int read() throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
InputStream.read()
public int read(byte[] b) throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
InputStream.read(byte[])
public int read(byte[] b, int off, int len) throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
InputStream.read(byte[], int, int)
public long skip(long n) throws java.io.IOException
skip
in class java.io.InputStream
java.io.IOException
InputStream.skip(long)
public void seek(long n) throws java.io.IOException
n
- java.io.IOException
public long getFilePointer() throws java.io.IOException
java.io.IOException
public int available() throws java.io.IOException
available
in class java.io.InputStream
java.io.IOException
InputStream.available()
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.InputStream
java.io.IOException
InputStream.close()
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"