Package nl.vpro.util
Class WrappedReadableByteChannel
java.lang.Object
nl.vpro.util.WrappedReadableByteChannel
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Channel
,ReadableByteChannel
Wraps a
ReadableByteChannel
. Records the number of channelled bytes. Also, it can have a consumer, which is called every batchsize bytes.- Since:
- 4.2
-
Method Details
-
read
- Specified by:
read
in interfaceReadableByteChannel
- Throws:
IOException
-
isOpen
public boolean isOpen() -
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceChannel
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
builder
-
getTotal
public long getTotal()
-