public class ReadChannel extends Object implements AutoCloseable
| Constructor and Description |
|---|
ReadChannel(ReadableByteChannel in) |
| Modifier and Type | Method and Description |
|---|---|
long |
bytesRead() |
void |
close() |
int |
readFully(ArrowBuf buffer,
int l)
Reads up to len into buffer.
|
int |
readFully(ByteBuffer buffer)
Reads bytes into buffer until it is full (buffer.remaining() == 0).
|
public ReadChannel(ReadableByteChannel in)
public long bytesRead()
public int readFully(ByteBuffer buffer) throws IOException
buffer - The buffer to read toIOException - if nit enough bytes left to readpublic int readFully(ArrowBuf buffer, int l) throws IOException
buffer - the buffer to read tol - the amount of bytes to readIOException - if nit enough bytes left to readpublic void close()
throws IOException
close in interface AutoCloseableIOExceptionCopyright © 2017 The Apache Software Foundation. All rights reserved.