public class BufferedRandomAccessFile extends Objectimplements RandomAccess
| Constructor and Description |
|---|
BufferedRandomAccessFile(File
|
BufferedRandomAccessFile(RandomAccessFile
|
| 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(Filefile, int pageSize, int cacheSize) throws FileNotFoundException , IOException
FileNotFoundException
IOException
public BufferedRandomAccessFile(RandomAccessFilefile, 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()
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