public class ReadChannel extends Object implements AutoCloseable
| Constructor and Description |
|---|
ReadChannel(ReadableByteChannel in) |
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.