|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface RandomAccess
RandomAccess provides a common interface to random access streams, whether they be input or output streams.
| Method Summary | |
|---|---|
void |
close()
Closes the random access stream and releases any system resources associated with the stream. |
long |
getLength()
Returns the length of the file, in bytes. |
long |
getOffset()
Returns the offset (in bytes) from the beginning of the file at which the next read or write occurs. |
void |
seek(long offset)
Sets the offset, measured from the beginning of the file, at which the next read or write occurs. |
| Method Detail |
|---|
void close()
throws java.io.IOException
java.io.IOException - if an I/O error occurs
long getOffset()
throws java.io.IOException
java.io.IOException - if an I/O error occurs.
long getLength()
throws java.io.IOException
java.io.IOException - if an I/O error occurs
void seek(long offset)
throws java.io.IOException
offset - the new offset position, measured in bytes from the beginning of the file
java.io.IOException - if an I/O error occurs
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
This file is part of muCommander - Copyright (C) 2002-2008 Maxence Bernard