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.ByteOrderDEFAULT_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, writeByteavailable, 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, writeUTFget, setgetIdentifier, logcontext, getContext, setContextcompareTo, getPriority, setPrioritygetInfo, setInfogetLocationgetVersiondefault void seek(long pos)
throws IOException
DataHandleseek in interface DataHandle<L extends Location>seek in interface StreamHandle<L extends Location>IOExceptionvoid resetStream()
throws IOException
resetStream in interface StreamHandle<L extends Location>IOException - If something goes wrong with the resetCopyright © 2015–2022 SciJava. All rights reserved.