|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.RandomAccessFile
edu.swri.swiftvis.util.BufferedRandomAccessFile
public class BufferedRandomAccessFile
Field Summary | |
---|---|
private byte[] |
buffer
|
private int |
curOffset
|
private static int |
DEFAULT_BUFFER_SIZE
|
private int |
readToBuffer
|
Constructor Summary | |
---|---|
BufferedRandomAccessFile(java.io.File f,
java.lang.String mode)
|
|
BufferedRandomAccessFile(java.io.File f,
java.lang.String mode,
int bufSize)
|
|
BufferedRandomAccessFile(java.lang.String f,
java.lang.String mode)
|
Method Summary | |
---|---|
private void |
fillBuffer()
|
long |
getFilePointer()
|
static void |
main(java.lang.String[] args)
|
int |
read()
|
int |
read(byte[] buf)
|
int |
read(byte[] buf,
int offset,
int len)
|
void |
seek(long filePos)
|
Methods inherited from class java.io.RandomAccessFile |
---|
close, getChannel, getFD, length, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, setLength, skipBytes, write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private byte[] buffer
private int curOffset
private int readToBuffer
private static final int DEFAULT_BUFFER_SIZE
Constructor Detail |
---|
public BufferedRandomAccessFile(java.io.File f, java.lang.String mode) throws java.io.FileNotFoundException
java.io.FileNotFoundException
public BufferedRandomAccessFile(java.lang.String f, java.lang.String mode) throws java.io.FileNotFoundException
java.io.FileNotFoundException
public BufferedRandomAccessFile(java.io.File f, java.lang.String mode, int bufSize) throws java.io.FileNotFoundException
java.io.FileNotFoundException
Method Detail |
---|
public static void main(java.lang.String[] args)
public int read() throws java.io.IOException
read
in class java.io.RandomAccessFile
java.io.IOException
public int read(byte[] buf) throws java.io.IOException
read
in class java.io.RandomAccessFile
java.io.IOException
public int read(byte[] buf, int offset, int len) throws java.io.IOException
read
in class java.io.RandomAccessFile
java.io.IOException
public void seek(long filePos) throws java.io.IOException
seek
in class java.io.RandomAccessFile
java.io.IOException
public long getFilePointer() throws java.io.IOException
getFilePointer
in class java.io.RandomAccessFile
java.io.IOException
private void fillBuffer() throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |