Class ReadableChannelWithLimit<A>
java.lang.Object
org.apache.jena.sparql.service.enhancer.slice.api.ReadableChannelWithLimit<A>
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Channel
,HasArrayOps<A>
,ReadableChannel<A>
-
Constructor Details
-
ReadableChannelWithLimit
-
-
Method Details
-
getDelegate
-
getArrayOps
- Specified by:
getArrayOps
in interfaceHasArrayOps<A>
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceChannel
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
isOpen
public boolean isOpen() -
read
Description copied from interface:ReadableChannel
Read method following the usual InputStream protocol.- Specified by:
read
in interfaceReadableChannel<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
-