public class BufferedRandomAccessInputStream extends InputStream
RandomAccessFile with multiple buffers so that different locations
can each have a buffer for the file.| Constructor and Description |
|---|
BufferedRandomAccessInputStream(RandomAccessFile in) |
BufferedRandomAccessInputStream(RandomAccessFile in,
int bufsize) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
long |
getFilePointer() |
boolean |
markSupported() |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
void |
seek(long pos) |
public BufferedRandomAccessInputStream(RandomAccessFile in) throws IOException
IOExceptionpublic BufferedRandomAccessInputStream(RandomAccessFile in, int bufsize) throws IOException
IOExceptionpublic final int read()
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class InputStreamIOExceptionpublic boolean markSupported()
markSupported in class InputStreampublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionpublic void seek(long pos)
throws IOException
IOExceptionpublic long getFilePointer()