Class ReadableByteChannelWithConditionalBound<T extends ReadableByteChannel>

java.lang.Object
org.aksw.commons.io.util.channel.ReadableByteChannelDecoratorBase<T>
org.aksw.commons.io.util.channel.ReadableByteChannelWithConditionalBound<T>
All Implemented Interfaces:
Closeable, AutoCloseable, Channel, ReadableByteChannel, ReadableByteChannelDecorator<T>

public class ReadableByteChannelWithConditionalBound<T extends ReadableByteChannel> extends ReadableByteChannelDecoratorBase<T>
Readable byte channel wrapper that before every read checks for an end-of-file (eof) condition. Once true, any subsequent read immediatly returns -1 (eof). Used to prevent reading across hadoop split boundaries