Package org.scijava.io.handle
Interface ResettableStreamHandle<L extends Location>
-
- All Superinterfaces:
AutoCloseable,Closeable,Comparable<Prioritized>,Contextual,DataHandle<L>,DataInput,DataOutput,HasPluginInfo,Identifiable,Locatable,Logged,Prioritized,RichPlugin,SciJavaPlugin,StreamHandle<L>,Typed<L>,TypedPlugin<L>,Versioned,WrapperPlugin<L>
- All Known Subinterfaces:
SeekableStreamHandle<L>
- All Known Implementing Classes:
AbstractSeekableStreamHandle
public interface ResettableStreamHandle<L extends Location> extends StreamHandle<L>
ADataHandlebacked by anInputStreamand/orOutputStream. Supports resetting the handle to the start of the internal stream(s).
-
-
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 Default Methods Modifier and Type Method Description voidresetStream()Resets the stream to its start.default 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.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
default void seek(long pos) throws IOExceptionDescription 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 interfaceStreamHandle<L extends Location>- Throws:
IOException
-
resetStream
void resetStream() throws IOExceptionResets the stream to its start.- Specified by:
resetStreamin interfaceStreamHandle<L extends Location>- Throws:
IOException- If something goes wrong with the reset
-
-