public interface SeekableStreamHandle<L extends Location> extends ResettableStreamHandle<L>
DataHandle
backed by an InputStream
and/or
OutputStream
. Supports seeking to an arbitrary position within the
stream.DataHandle.ByteOrder
DEFAULT_BLOCK_SIZE, MAX_SEARCH_SIZE
Modifier and Type | Method and Description |
---|---|
void |
seek(long pos)
Sets the stream offset, measured from the beginning of the stream, at which
the next read or write occurs.
|
resetStream
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
void seek(long pos) throws IOException
DataHandle
seek
in interface DataHandle<L extends Location>
seek
in interface ResettableStreamHandle<L extends Location>
seek
in interface StreamHandle<L extends Location>
IOException
Copyright © 2015–2022 SciJava. All rights reserved.