public interface ResettableStreamHandle<L extends Location> extends StreamHandle<L>
DataHandle
backed by an InputStream
and/or
OutputStream
. Supports resetting the handle to the start of the
internal stream(s).DataHandle.ByteOrder
DEFAULT_BLOCK_SIZE, MAX_SEARCH_SIZE
Modifier and Type | Method and Description |
---|---|
void |
resetStream()
Resets the stream to its start.
|
default void |
seek(long pos)
Sets the stream offset, measured from the beginning of the stream, at which
the next read or write occurs.
|
advance, close, ensureReadable, ensureWritable, in, jump, out, read, read, readByte, setOffset, write, write, writeByte
available, checksum, conversionBuffer, exists, findString, findString, findString, findString, getEncoding, getOrder, isBigEndian, isLittleEndian, isReadable, isWritable, lastModified, length, offset, read, readBoolean, readChar, readCString, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readString, readString, readUnsignedByte, readUnsignedShort, readUTF, setEncoding, setLength, setLittleEndian, setOrder, skip, skipBytes, write, writeBoolean, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLine, writeLong, writeShort, writeUTF
get, set
getIdentifier, log
context, getContext, setContext
compareTo, getPriority, setPriority
getInfo, setInfo
getLocation
getVersion
default void seek(long pos) throws IOException
DataHandle
seek
in interface DataHandle<L extends Location>
seek
in interface StreamHandle<L extends Location>
IOException
void resetStream() throws IOException
resetStream
in interface StreamHandle<L extends Location>
IOException
- If something goes wrong with the resetCopyright © 2015–2022 SciJava. All rights reserved.