Package org.aksw.commons.io.input
Class SeekableReadableChannelSwitchable<A>
java.lang.Object
org.aksw.commons.util.closeable.AutoCloseableWrapperBase<T>
org.aksw.commons.io.shared.ChannelDecoratorBase<X>
org.aksw.commons.io.input.ReadableChannelDecoratorBase<A,X>
org.aksw.commons.io.input.ReadableChannelLocking<A,X>
org.aksw.commons.io.input.ReadableChannelSwitchableBase<A,SeekableReadableChannel<A>>
org.aksw.commons.io.input.SeekableReadableChannelSwitchable<A>
- All Implemented Interfaces:
Closeable,AutoCloseable,Cloneable,Channel,HasArrayOps<A>,HasPosition,ReadableChannel<A>,ReadableSource<A>,SeekableReadableChannel<A>
public class SeekableReadableChannelSwitchable<A>
extends ReadableChannelSwitchableBase<A,SeekableReadableChannel<A>>
implements SeekableReadableChannel<A>
-
Field Summary
Fields inherited from class org.aksw.commons.io.input.ReadableChannelLocking
rwlFields inherited from class org.aksw.commons.util.closeable.AutoCloseableWrapperBase
delegate -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.aksw.commons.io.input.ReadableChannelSwitchableBase
getDelegate, setDecoratee, setDecorateeMethods inherited from class org.aksw.commons.io.input.ReadableChannelLocking
getReadWriteLock, readMethods inherited from class org.aksw.commons.io.input.ReadableChannelDecoratorBase
getArrayOpsMethods inherited from class org.aksw.commons.io.shared.ChannelDecoratorBase
close, isOpenMethods inherited from class org.aksw.commons.util.closeable.AutoCloseableWrapperBase
closeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.aksw.commons.io.buffer.array.HasArrayOps
getArrayOpsMethods inherited from interface org.aksw.commons.io.input.ReadableSource
read, readRaw
-
Constructor Details
-
SeekableReadableChannelSwitchable
-
-
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<A>
-