Class ReadableByteChannelBase
- java.lang.Object
-
- org.aksw.commons.io.hadoop.binseach.bz2.ReadableByteChannelBase
-
- All Implemented Interfaces:
Closeable,AutoCloseable,Channel,ReadableByteChannel
- Direct Known Subclasses:
BufferOverInputStream.ByteArrayChannel,ReadableChannelWithBlockAdvertisement
public abstract class ReadableByteChannelBase extends Object implements ReadableByteChannel
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanisOpenprotected intmaxReadSize
-
Constructor Summary
Constructors Constructor Description ReadableByteChannelBase()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidclose()booleanisOpen()protected booleanisUnderlyingEntityKnownToBeClosed()intread(ByteBuffer dst)protected abstract intreadActual(ByteBuffer dst)
-
-
-
Method Detail
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceChannel- Specified by:
closein interfaceCloseable- Throws:
IOException
-
read
public int read(ByteBuffer dst) throws IOException
- Specified by:
readin interfaceReadableByteChannel- Throws:
IOException
-
isUnderlyingEntityKnownToBeClosed
protected boolean isUnderlyingEntityKnownToBeClosed()
-
readActual
protected abstract int readActual(ByteBuffer dst) throws IOException
- Throws:
IOException
-
-