public class ReadableByteChannelWithConditionalBound<T extends ReadableByteChannel> extends ReadableByteChannelDecoratorBase<T>
Modifier and Type | Field and Description |
---|---|
protected long |
bytesRead |
protected boolean |
isInEofState |
protected Predicate<? super ReadableByteChannelWithConditionalBound<T>> |
testForEof |
delegate
Constructor and Description |
---|
ReadableByteChannelWithConditionalBound(T delegate,
Predicate<? super ReadableByteChannelWithConditionalBound<T>> testForEof) |
Modifier and Type | Method and Description |
---|---|
long |
getBytesRead() |
int |
read(ByteBuffer byteBuffer) |
getDelegate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, isOpen
protected Predicate<? super ReadableByteChannelWithConditionalBound<T extends ReadableByteChannel>> testForEof
protected boolean isInEofState
protected long bytesRead
public ReadableByteChannelWithConditionalBound(T delegate, Predicate<? super ReadableByteChannelWithConditionalBound<T>> testForEof)
public int read(ByteBuffer byteBuffer) throws IOException
IOException
public long getBytesRead()
Copyright © 2016–2021 Smart Data Analytics (SDA) Research Group. All rights reserved.