Class ByteBufferInputStreamIteator

java.lang.Object
com.github.basking2.sdsai.itrex.iterators.ByteBufferInputStreamIteator
All Implemented Interfaces:
Iterator<ByteBuffer>

public class ByteBufferInputStreamIteator extends Object implements Iterator<ByteBuffer>
And Iterator that batches and streams reads from an InputStream. When the last read() is called on the input stream returns a length less than 0, the input stream is closed. If you do not exhaust this iterator, you must close the input stream.