public class ByteArrayBinaryStream extends AbstractBinaryInputOutput
_env, _isEOF, _isTimeout, _lineReaderSEEK_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, writepublic ByteArrayBinaryStream(Env env)
public long getPosition()
AbstractBinaryInputOutputgetPosition in interface BinaryInputgetPosition in interface BinaryStreamgetPosition in class AbstractBinaryInputOutputpublic boolean setPosition(long pos)
AbstractBinaryInputOutputsetPosition in interface BinaryInputsetPosition in interface BinaryStreamsetPosition in class AbstractBinaryInputOutputpublic void unread()
throws java.io.IOException
AbstractBinaryInputOutputunread in interface BinaryInputunread in class AbstractBinaryInputOutputjava.io.IOExceptionpublic boolean isEOF()
AbstractBinaryInputOutputisEOF in interface BinaryStreamisEOF in class AbstractBinaryInputOutput