Class ReadableChannelConcat<A>
java.lang.Object
org.aksw.commons.util.closeable.AutoCloseableBase
org.aksw.commons.util.closeable.AutoCloseableWithLeakDetectionBase
org.aksw.commons.io.shared.ChannelBase
org.aksw.commons.io.input.ReadableChannelBase<A>
org.aksw.commons.io.input.ReadableChannelConcat<A>
- All Implemented Interfaces:
Closeable, AutoCloseable, Channel, HasArrayOps<A>, ReadableChannel<A>, ReadableSource<A>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ReadableChannel<A> protected Iterator<ReadableChannel<A>> protected List<ReadableChannel<A>> Fields inherited from class AutoCloseableWithLeakDetectionBase
instantiationStackTraceFields inherited from class AutoCloseableBase
closeStackTrace, enableCloseStackTrace, isClosed -
Constructor Summary
ConstructorsConstructorDescriptionReadableChannelConcat(ArrayOps<A> arrayOps, List<ReadableChannel<A>> members) -
Method Summary
Modifier and TypeMethodDescriptionvoidintRead method following the usual InputStream protocol.Methods inherited from class ChannelBase
isOpenMethods inherited from class AutoCloseableWithLeakDetectionBase
finalize, getInstantiationStackTraceMethods inherited from class AutoCloseableBase
close, ensureOpen, throwClosedExceptionMethods inherited from class Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ReadableSource
readRaw
-
Field Details
-
arrayOps
-
members
-
it
-
current
-
-
Constructor Details
-
ReadableChannelConcat
-
-
Method Details
-
getArrayOps
- Specified by:
getArrayOpsin interfaceHasArrayOps<A>
-
closeActual
public void closeActual()- Overrides:
closeActualin classAutoCloseableBase
-
read
Description copied from interface:ReadableSourceRead method following the usual InputStream protocol.- Specified by:
readin interfaceReadableSource<A>- Parameters:
array- The array into which to put the read dataposition- Offset into array where to start writinglength- Maximum number of items to read.- Returns:
- The number of items read. Return -1 if end of data was reached, and 0 iff length was 0.
- Throws:
IOException
-