Interface Chunk
-
- All Superinterfaces:
AutoCloseable,SdkAutoCloseable
public interface Chunk extends SdkAutoCloseable
An interface which defines a "chunk" of data.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static Chunkcreate(InputStream data, int sizeInBytes)Get a default implementation of a chunk, which wraps a stream with a fixed size;booleanhasRemaining()Whether the logical end of a chunk has been reached.InputStreamstream()Get the underlying stream of data for a chunk.-
Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
close
-
-
-
-
Method Detail
-
create
static Chunk create(InputStream data, int sizeInBytes)
Get a default implementation of a chunk, which wraps a stream with a fixed size;
-
stream
InputStream stream()
Get the underlying stream of data for a chunk.
-
hasRemaining
boolean hasRemaining()
Whether the logical end of a chunk has been reached.
-
-