@InterfaceAudience.Private class BufferChain extends Object
Modifier and Type | Field and Description |
---|---|
private int |
bufferOffset |
private ByteBuffer[] |
buffers |
private int |
remaining |
Constructor and Description |
---|
BufferChain(ByteBuffer... buffers) |
Modifier and Type | Method and Description |
---|---|
(package private) byte[] |
getBytes()
Expensive.
|
(package private) boolean |
hasRemaining() |
(package private) long |
write(GatheringByteChannel channel,
int chunkSize)
Write out our chain of buffers in chunks
|
private final ByteBuffer[] buffers
private int remaining
private int bufferOffset
BufferChain(ByteBuffer... buffers)
byte[] getBytes()
boolean hasRemaining()
long write(GatheringByteChannel channel, int chunkSize) throws IOException
channel
- Where to writechunkSize
- Size of chunks to write.IOException
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.