Package org.scijava.io.handle
Class AbstractDataHandle<L extends Location>
- java.lang.Object
-
- org.scijava.AbstractContextual
-
- org.scijava.plugin.AbstractRichPlugin
-
- org.scijava.plugin.AbstractTypedPlugin<D>
-
- org.scijava.plugin.AbstractWrapperPlugin<L>
-
- org.scijava.io.handle.AbstractDataHandle<L>
-
- All Implemented Interfaces:
Closeable,DataInput,DataOutput,AutoCloseable,Comparable<Prioritized>,Contextual,Identifiable,DataHandle<L>,Locatable,Logged,HasPluginInfo,RichPlugin,SciJavaPlugin,TypedPlugin<L>,WrapperPlugin<L>,Prioritized,Typed<L>,Versioned
- Direct Known Subclasses:
AbstractHigherOrderHandle,AbstractStreamHandle,BytesHandle,DummyHandle,FileHandle,MultiWriteHandle
public abstract class AbstractDataHandle<L extends Location> extends AbstractWrapperPlugin<L> implements DataHandle<L>
Abstract base class forDataHandleplugins.- Author:
- Curtis Rueden
-
-
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
-
-
Constructor Summary
Constructors Constructor Description AbstractDataHandle()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]conversionBuffer()StringgetEncoding()Gets the native encoding of the stream.DataHandle.ByteOrdergetOrder()Returns the byte order of the stream.voidsetEncoding(String encoding)Sets the native encoding of the stream.voidsetOrder(DataHandle.ByteOrder order)Sets the byte order of the stream.-
Methods inherited from class org.scijava.plugin.AbstractWrapperPlugin
get, set
-
Methods inherited from class org.scijava.plugin.AbstractTypedPlugin
supports
-
Methods inherited from class org.scijava.plugin.AbstractRichPlugin
getInfo, getPriority, setInfo, setPriority, toString
-
Methods inherited from class org.scijava.AbstractContextual
context, getContext
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.scijava.Contextual
context, getContext, setContext
-
Methods inherited from interface org.scijava.io.handle.DataHandle
available, checksum, ensureReadable, ensureWritable, exists, findString, findString, findString, findString, isBigEndian, isLittleEndian, isReadable, isWritable, lastModified, length, offset, read, read, read, readBoolean, readChar, readCString, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readString, readString, readUnsignedByte, readUnsignedShort, readUTF, seek, setLength, setLittleEndian, skip, skipBytes, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLine, writeLong, writeShort, writeUTF
-
Methods inherited from interface java.io.DataOutput
write, write
-
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.Versioned
getVersion
-
Methods inherited from interface org.scijava.plugin.WrapperPlugin
get, set
-
-
-
-
Method Detail
-
conversionBuffer
public byte[] conversionBuffer()
- Specified by:
conversionBufferin interfaceDataHandle<L extends Location>- Returns:
- a 8 byte long buffer array used for type conversions
-
getOrder
public DataHandle.ByteOrder getOrder()
Description copied from interface:DataHandleReturns the byte order of the stream.- Specified by:
getOrderin interfaceDataHandle<L extends Location>
-
setOrder
public void setOrder(DataHandle.ByteOrder order)
Description copied from interface:DataHandleSets the byte order of the stream.- Specified by:
setOrderin interfaceDataHandle<L extends Location>- Parameters:
order- Order to set.
-
getEncoding
public String getEncoding()
Description copied from interface:DataHandleGets the native encoding of the stream.- Specified by:
getEncodingin interfaceDataHandle<L extends Location>
-
setEncoding
public void setEncoding(String encoding)
Description copied from interface:DataHandleSets the native encoding of the stream.- Specified by:
setEncodingin interfaceDataHandle<L extends Location>
-
-