public interface BinaryStream
Modifier and Type | Field and Description |
---|---|
static int |
SEEK_CUR |
static int |
SEEK_END |
static int |
SEEK_SET |
Modifier and Type | Method and Description |
---|---|
void |
close()
All streams can be closed.
|
long |
getPosition()
Tells the position in the stream.
|
boolean |
isEOF()
Returns true if end-of-file has been reached
|
long |
seek(long offset,
int whence)
Seek according to offset and whence.
|
boolean |
setPosition(long offset)
Sets the current position in the stream.
|
Value |
stat()
Returns an array filled with stat information.
|
static final int SEEK_SET
static final int SEEK_CUR
static final int SEEK_END
void close()
long getPosition()
boolean setPosition(long offset)
long seek(long offset, int whence)
boolean isEOF()
Value stat()