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.IOExceptionpublic int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionInputStream.read()public int read(byte[] b)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionInputStream.read(byte[])public int read(byte[] b,
int off,
int len)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionInputStream.read(byte[], int, int)public long skip(long n)
throws java.io.IOException
skip in class java.io.InputStreamjava.io.IOExceptionInputStream.skip(long)public void seek(long n)
throws java.io.IOException
n - java.io.IOExceptionpublic long getFilePointer()
throws java.io.IOException
java.io.IOExceptionpublic int available()
throws java.io.IOException
available in class java.io.InputStreamjava.io.IOExceptionInputStream.available()public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.InputStreamjava.io.IOExceptionInputStream.close()"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"