public class ByteArrayBinaryStream extends AbstractBinaryInputOutput
_env, _isEOF, _isTimeout, _lineReader
SEEK_CUR, SEEK_END, SEEK_SET
Constructor and Description |
---|
ByteArrayBinaryStream(Env env) |
Modifier and Type | Method and Description |
---|---|
long |
getPosition()
Returns the current location in the file.
|
boolean |
isEOF()
Returns true on the EOF.
|
boolean |
setPosition(long pos)
Sets the current location in the file.
|
void |
unread()
Unread the last byte.
|
appendTo, close, closeRead, closeWrite, flush, getAvailable, getEnv, getInputStream, getOutputStream, getResourceType, init, isTimeout, openCopy, print, print, read, read, read, readLine, readOptionalLinefeed, seek, setTimeout, stat, toJavaObject, toString, write, write, write
public ByteArrayBinaryStream(Env env)
public long getPosition()
AbstractBinaryInputOutput
getPosition
in interface BinaryInput
getPosition
in interface BinaryStream
getPosition
in class AbstractBinaryInputOutput
public boolean setPosition(long pos)
AbstractBinaryInputOutput
setPosition
in interface BinaryInput
setPosition
in interface BinaryStream
setPosition
in class AbstractBinaryInputOutput
public void unread() throws java.io.IOException
AbstractBinaryInputOutput
unread
in interface BinaryInput
unread
in class AbstractBinaryInputOutput
java.io.IOException
public boolean isEOF()
AbstractBinaryInputOutput
isEOF
in interface BinaryStream
isEOF
in class AbstractBinaryInputOutput