|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface RandomAccessContent
Random Access Content.
| 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. |
InputStream |
getInputStream()
Get the input stream. |
long |
length()
Returns the length of this file. |
void |
seek(long pos)
Sets the file-pointer offset, measured from the beginning of this file, at which the next read or write occurs. |
| 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, skipBytes |
| Method Detail |
|---|
long getFilePointer()
throws IOException
IOException - if an I/O error occurs.
void seek(long pos)
throws IOException
getInputStream() you have to reget the InputStream after
calling seek(long)
pos - the offset position, measured in bytes from the
beginning of the file, at which to set the file
pointer.
IOException - if pos is less than
0 or if an I/O error occurs.
long length()
throws IOException
IOException - if an I/O error occurs.
void close()
throws IOException
If this file has an associated channel then the channel is closed as well.
IOException - if an I/O error occurs.
InputStream getInputStream()
throws IOException
seek(long) you have to reget the InputStream
IOException - if an I/O error occurs.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||