Class ReadableChannelOverSliceAccessor<A>
java.lang.Object
org.apache.jena.sparql.service.enhancer.impl.util.AutoCloseableBase
org.apache.jena.sparql.service.enhancer.impl.util.AutoCloseableWithLeakDetectionBase
org.apache.jena.sparql.service.enhancer.slice.api.ChannelBase
org.apache.jena.sparql.service.enhancer.slice.api.ReadableChannelBase<A>
org.apache.jena.sparql.service.enhancer.slice.api.ReadableChannelOverSliceAccessor<A>
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Channel
,HasArrayOps<A>
,ReadableChannel<A>
-
Constructor Summary
ConstructorDescriptionReadableChannelOverSliceAccessor
(SliceAccessor<A> accessor, long posInSlice) -
Method Summary
Modifier and TypeMethodDescriptionvoid
int
Read method following the usual InputStream protocol.Methods inherited from class org.apache.jena.sparql.service.enhancer.slice.api.ChannelBase
isOpen
Methods inherited from class org.apache.jena.sparql.service.enhancer.impl.util.AutoCloseableWithLeakDetectionBase
getInstantiationStackTrace
Methods inherited from class org.apache.jena.sparql.service.enhancer.impl.util.AutoCloseableBase
close
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.jena.sparql.service.enhancer.slice.api.ReadableChannel
readRaw
-
Constructor Details
-
ReadableChannelOverSliceAccessor
-
-
Method Details
-
getArrayOps
-
closeActual
- Throws:
IOException
-
read
Description copied from interface:ReadableChannel
Read method following the usual InputStream protocol.- 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
-