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