All Superinterfaces:
AutoCloseable, SdkAutoCloseable

public interface Chunk extends SdkAutoCloseable
An interface which defines a "chunk" of data.
  • Method Summary

    Modifier and Type
    Method
    Description
    static Chunk
    create(InputStream data, int sizeInBytes)
    Get a default implementation of a chunk, which wraps a stream with a fixed size;
    boolean
    Whether the logical end of a chunk has been reached.
    Get the underlying stream of data for a chunk.

    Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable

    close
  • Method Details

    • 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.