public abstract class AbstractStreamHandle<L extends Location> extends AbstractDataHandle<L> implements StreamHandle<L>
StreamHandle
implementations.DataHandle.ByteOrder
DEFAULT_BLOCK_SIZE, MAX_SEARCH_SIZE
Constructor and Description |
---|
AbstractStreamHandle() |
Modifier and Type | Method and Description |
---|---|
long |
offset()
Returns the current offset in the stream.
|
void |
setOffset(long offset)
Sets the offset of the handle to the given position.
|
conversionBuffer, getEncoding, getOrder, setEncoding, setOrder
get, set
supports
getInfo, getPriority, setInfo, setPriority, toString
context, getContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
advance, close, ensureReadable, ensureWritable, in, jump, out, read, read, readByte, resetStream, seek, write, write, writeByte
available, checksum, conversionBuffer, exists, findString, findString, findString, findString, getEncoding, getOrder, isBigEndian, isLittleEndian, isReadable, isWritable, lastModified, length, 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
public void setOffset(long offset)
StreamHandle
This method is intended to be called only in conjunction with reading from the input stream, or writing to the output stream. Otherwise, the contents may get out of sync.
setOffset
in interface StreamHandle<L extends Location>
public long offset()
DataHandle
offset
in interface DataHandle<L extends Location>
Copyright © 2015–2022 SciJava. All rights reserved.