public class ReadChannel extends Object implements AutoCloseable
コンストラクタと説明 |
---|
ReadChannel(ReadableByteChannel in) |
修飾子とタイプ | メソッドと説明 |
---|---|
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
インタフェース内 AutoCloseable
IOException
Copyright © 2018 The Apache Software Foundation. All rights reserved.