public class ReadChannel extends Object implements AutoCloseable
ReadableByteChannel
that reads into ArrowBufs.Constructor and Description |
---|
ReadChannel(ReadableByteChannel in) |
Modifier and Type | Method and Description |
---|---|
long |
bytesRead() |
void |
close() |
long |
readFully(ArrowBuf buffer,
long length)
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 long readFully(ArrowBuf buffer, long length) throws IOException
buffer
- the buffer to read tolength
- the amount of bytes to readIOException
- if nit enough bytes left to readpublic void close() throws IOException
close
in interface AutoCloseable
IOException
Copyright © 2024 The Apache Software Foundation. All rights reserved.