public class BufferedRandomAccessFile extends Object implements RandomAccess
Constructor and Description |
---|
BufferedRandomAccessFile(File file,
int pageSize,
int cacheSize) |
BufferedRandomAccessFile(RandomAccessFile file,
int pageSize,
int cacheSize) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
int |
getCacheSize() |
long |
getFilePointer() |
int |
getPageSize() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
byte |
readByte() |
double |
readDouble() |
float |
readFloat() |
int |
readInt() |
long |
readLong() |
short |
readShort() |
void |
seek(long pos) |
public BufferedRandomAccessFile(File file, int pageSize, int cacheSize) throws FileNotFoundException, IOException
FileNotFoundException
IOException
public BufferedRandomAccessFile(RandomAccessFile file, int pageSize, int cacheSize) throws IOException
IOException
public int getPageSize()
public int getCacheSize()
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
public void seek(long pos) throws IOException
seek
in interface RandomAccess
IOException
public long getFilePointer()
getFilePointer
in interface RandomAccess
public byte readByte() throws IOException
IOException
public short readShort() throws IOException
readShort
in interface RandomAccess
IOException
public int readInt() throws IOException
readInt
in interface RandomAccess
IOException
public long readLong() throws IOException
readLong
in interface RandomAccess
IOException
public float readFloat() throws IOException
readFloat
in interface RandomAccess
IOException
public double readDouble() throws IOException
readDouble
in interface RandomAccess
IOException
public int read(byte[] b) throws IOException
read
in interface RandomAccess
IOException
public int read(byte[] b, int off, int len) throws IOException
read
in interface RandomAccess
IOException