@InterfaceAudience.Private class BufferChain extends Object
Modifier and Type | Field and Description |
---|---|
private ByteBuffer[] |
buffers |
private int |
remaining |
private int |
size |
Constructor and Description |
---|
BufferChain(ByteBuffer... buffers) |
Modifier and Type | Method and Description |
---|---|
(package private) ByteBuffer[] |
getBuffers() |
(package private) byte[] |
getBytes()
Expensive.
|
(package private) boolean |
hasRemaining() |
(package private) int |
size() |
(package private) long |
write(GatheringByteChannel channel) |
private final ByteBuffer[] buffers
private int remaining
private int size
BufferChain(ByteBuffer... buffers)
byte[] getBytes()
boolean hasRemaining()
long write(GatheringByteChannel channel) throws IOException
IOException
int size()
ByteBuffer[] getBuffers()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.