|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface NikeFS2RandomAccessStorage
This interface specifies a random acess data storage container,
pretty much the same as java.util.RandomAccessFile
.
Method Summary | |
---|---|
void |
close()
Closes the data storage container. |
NikeFS2RandomAccessStorage |
copy()
Creates a clone, or copy, of this storage, having the exact same contents and the file pointer reset to zero. |
long |
getFilePointer()
Returns the current file pointer of the storage container. |
long |
length()
Returns the length, or size, in number of bytes currently used by this instance. |
void |
seek(long pos)
Repositions the offset, or file pointer, at which the next read or write operation will occur. |
int |
skipBytes(int n)
Moves the offset, or file pointer, a specified number of bytes towards the end of the storage container. |
Methods inherited from interface java.io.DataOutput |
---|
write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF |
Methods inherited from interface java.io.DataInput |
---|
readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF |
Method Detail |
---|
void close() throws java.io.IOException
java.io.IOException
long getFilePointer() throws java.io.IOException
java.io.IOException
long length() throws java.io.IOException
java.io.IOException
void seek(long pos) throws java.io.IOException
pos
- The offset in bytes, at which the next operation
will occur.
java.io.IOException
int skipBytes(int n) throws java.io.IOException
skipBytes
in interface java.io.DataInput
java.io.IOException
NikeFS2RandomAccessStorage copy() throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |