Package org.scijava.io.handle
Interface SeekableStreamHandle<L extends Location>
-
- All Superinterfaces:
AutoCloseable,Closeable,Comparable<Prioritized>,Contextual,DataHandle<L>,DataInput,DataOutput,HasPluginInfo,Identifiable,Locatable,Logged,Prioritized,ResettableStreamHandle<L>,RichPlugin,SciJavaPlugin,StreamHandle<L>,Typed<L>,TypedPlugin<L>,Versioned,WrapperPlugin<L>
- All Known Implementing Classes:
AbstractSeekableStreamHandle
public interface SeekableStreamHandle<L extends Location> extends ResettableStreamHandle<L>
ADataHandlebacked by anInputStreamand/orOutputStream. Supports seeking to an arbitrary position within the stream.- Author:
- Gabriel Einsdorf
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.scijava.io.handle.DataHandle
DataHandle.ByteOrder
-
-
Field Summary
-
Fields inherited from interface org.scijava.io.handle.DataHandle
DEFAULT_BLOCK_SIZE, MAX_SEARCH_SIZE
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidseek(long pos)Sets the stream offset, measured from the beginning of the stream, at which the next read or write occurs.-
Methods inherited from interface org.scijava.Contextual
context, getContext, setContext
-
Methods inherited from interface org.scijava.io.handle.DataHandle
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
-
Methods inherited from interface org.scijava.plugin.HasPluginInfo
getInfo, setInfo
-
Methods inherited from interface org.scijava.Locatable
getLocation
-
Methods inherited from interface org.scijava.Prioritized
compareTo, getPriority, setPriority
-
Methods inherited from interface org.scijava.io.handle.ResettableStreamHandle
resetStream
-
Methods inherited from interface org.scijava.plugin.RichPlugin
getIdentifier, log
-
Methods inherited from interface org.scijava.io.handle.StreamHandle
advance, close, ensureReadable, ensureWritable, in, jump, out, read, read, readByte, setOffset, write, write, writeByte
-
Methods inherited from interface org.scijava.Versioned
getVersion
-
Methods inherited from interface org.scijava.plugin.WrapperPlugin
get, set
-
-
-
-
Method Detail
-
seek
void seek(long pos) throws IOException
Description copied from interface:DataHandleSets the stream offset, measured from the beginning of the stream, at which the next read or write occurs.- Specified by:
seekin interfaceDataHandle<L extends Location>- Specified by:
seekin interfaceResettableStreamHandle<L extends Location>- Specified by:
seekin interfaceStreamHandle<L extends Location>- Throws:
IOException
-
-