public final class ChunkBuffer extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
ChunkBuffer.Builder |
| Modifier and Type | Method and Description |
|---|---|
static ChunkBuffer.Builder |
builder() |
Iterable<ByteBuffer> |
split(ByteBuffer inputByteBuffer)
Split the input
ByteBuffer into multiple smaller ByteBuffers, each of which contains chunkSize
worth of bytes. |
public static ChunkBuffer.Builder builder()
public Iterable<ByteBuffer> split(ByteBuffer inputByteBuffer)
ByteBuffer into multiple smaller ByteBuffers, each of which contains chunkSize
worth of bytes. If the last chunk of the input ByteBuffer contains less than chunkSize data, the last chunk will
be buffered.Copyright © 2023. All rights reserved.