public abstract class AbstractStreamHandle<L extends Location> extends AbstractDataHandle<L> implements StreamHandle<L>
StreamHandle implementations.DataHandle.ByteOrderDEFAULT_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, setOrderget, setsupportsgetInfo, getPriority, setInfo, setPriority, toStringcontext, getContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitadvance, close, ensureReadable, ensureWritable, in, jump, out, read, read, readByte, resetStream, seek, write, write, writeByteavailable, 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, writeUTFget, setgetIdentifier, logcontext, getContext, setContextcompareTo, getPriority, setPrioritygetInfo, setInfogetLocationgetVersionpublic void setOffset(long offset)
StreamHandleThis 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()
DataHandleoffset in interface DataHandle<L extends Location>Copyright © 2015–2022 SciJava. All rights reserved.