public interface Chunk extends SdkAutoCloseable
| Modifier and Type | Method and Description |
|---|---|
static Chunk |
create(InputStream data,
int sizeInBytes)
Get a default implementation of a chunk, which wraps a stream with a fixed size;
|
boolean |
hasRemaining()
Whether the logical end of a chunk has been reached.
|
InputStream |
stream()
Get the underlying stream of data for a chunk.
|
closestatic Chunk create(InputStream data, int sizeInBytes)
InputStream stream()
boolean hasRemaining()
Copyright © 2023. All rights reserved.