Class SeekableReadableChannelOverNio<T extends SeekableByteChannel>
java.lang.Object
org.aksw.commons.io.input.ReadableChannelOverNio<T>
org.aksw.commons.io.input.SeekableReadableChannelOverNio<T>
- All Implemented Interfaces:
Closeable, AutoCloseable, Cloneable, Channel, HasArrayOps<byte[]>, HasPosition, ReadableChannel<byte[]>, ReadableSource<byte[]>, SeekableReadableChannel<byte[]>
public class SeekableReadableChannelOverNio<T extends SeekableByteChannel>
extends ReadableChannelOverNio<T>
implements SeekableReadableChannel<byte[]>
-
Field Summary
Fields inherited from class ReadableChannelOverNio
delegate -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSeekableReadableChannel<byte[]> Optional operation.longposition()voidposition(long pos) Methods inherited from class ReadableChannelOverNio
close, getArrayOps, getDelegate, isOpen, readMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface HasArrayOps
getArrayOpsMethods inherited from interface ReadableSource
read, readRaw
-
Constructor Details
-
SeekableReadableChannelOverNio
-
-
Method Details
-
position
- Specified by:
positionin interfaceHasPosition- Throws:
IOException
-
position
- Specified by:
positionin interfaceHasPosition- Throws:
IOException
-
cloneObject
Description copied from interface:SeekableReadableChannelOptional operation. Open a new channel to the underlying source at the same position as this channel. The returned channel is an independent entity and needs to be closed separatedly. Opening a channel this way may be faster than opening a new channel at the source because information about this channel may be re-used (e.g. held pages and pointers into internal data structures)- Specified by:
cloneObjectin interfaceSeekableReadableChannel<T extends SeekableByteChannel>
-