public class ReadableByteChannelFromIterator extends Object implements ReadableByteChannel
| Modifier and Type | Field and Description |
|---|---|
protected ByteBuffer |
currentBuffer |
protected boolean |
isOpen |
protected Iterator<ByteBuffer> |
it |
| Constructor and Description |
|---|
ReadableByteChannelFromIterator(Iterator<ByteBuffer> it) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
isOpen() |
static void |
main(String[] args) |
int |
read(ByteBuffer dst) |
static InputStream |
toInputStream(Iterator<String> it) |
static InputStream |
toInputStream(Stream<String> stream) |
protected Iterator<ByteBuffer> it
protected boolean isOpen
protected ByteBuffer currentBuffer
public ReadableByteChannelFromIterator(Iterator<ByteBuffer> it)
public static void main(String[] args)
public static InputStream toInputStream(Iterator<String> it)
public static InputStream toInputStream(Stream<String> stream)
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in interface ChannelIOExceptionpublic int read(ByteBuffer dst)
read in interface ReadableByteChannelCopyright © 2015–2018 Smart Data Analytics (SDA) research group. All rights reserved.