Class ReadableByteChannelFromInputStream

java.lang.Object
org.aksw.commons.io.util.channel.ReadableByteChannelFromInputStream
All Implemented Interfaces:
Closeable, AutoCloseable, Channel, ReadableByteChannel

public class ReadableByteChannelFromInputStream extends Object implements ReadableByteChannel
A replacement for Channels.newChannel with the following changes for interoperability with hadoop and our GenericRecordReader: - Does not close the underlying stream on interrupt - This implementation's read method just delegates to the input stream (without additional buffering / repeated reads). This way hadoop's position advertising remains usable.