|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IRandomAccess
Interface for random access into structures (e.g., files or arrays).
Method Summary | |
---|---|
void |
close()
Closes this random access file stream and releases any system resources associated with the stream. |
long |
getFilePointer()
Returns the current offset in this file. |
long |
length()
Returns the length of this file. |
int |
read()
Reads a byte of data from this file. |
int |
read(byte[] b)
Reads up to b.length bytes of data from this file into an array of bytes. |
int |
read(byte[] b,
int off,
int len)
Reads up to len bytes of data from this file into an array of bytes. |
void |
seek(long pos)
Sets the file-pointer offset, measured from the beginning of this file, at which the next read or write occurs. |
void |
setLength(long newLength)
Sets the length of this file. |
Methods inherited from interface java.io.DataInput |
---|
readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, skipBytes |
Methods inherited from interface java.io.DataOutput |
---|
write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF |
Method Detail |
---|
void close() throws IOException
IOException
long getFilePointer() throws IOException
IOException
long length() throws IOException
IOException
int read() throws IOException
IOException
int read(byte[] b) throws IOException
IOException
int read(byte[] b, int off, int len) throws IOException
IOException
void seek(long pos) throws IOException
IOException
void setLength(long newLength) throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |