|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface RandomAccessData
Interface for the random access related methods of RandomAccessFile. Names relating to files are preserved to allow drop-in use.
| Method Summary | |
|---|---|
long |
getFilePointer()
Returns the current offset in the data, in bytes. |
long |
length()
Gets the number of bytes of data. |
void |
seek(long pos)
Sets the offset in the data, in bytes. |
| Method Detail |
|---|
long getFilePointer()
throws java.io.IOException
java.io.IOException - if an I/O error is encountered.
void seek(long pos)
throws java.io.IOException
pos - The desired offset, in bytes.
java.io.IOException - if pos is negative, or if an I/O error
is encountered.
long length()
throws java.io.IOException
java.io.IOException - if an I/O error is encountered.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||