Class AbstractAwsInputStream

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Long getDecodedLength()
      final Long getReadDecodedLength()
      final String getChecksum()
      final ChecksumAlgorithm getAlgorithm()
      final Integer getChunks()
      Unit close()
      Integer read(ByteArray b, Integer off, Integer len) Bulk read that delegates the first byte to the single-byte read so that all chunk-boundary parsing (chunk headers, signatures, trailing checksum, end-of-stream detection) stays in one place, then copies the remaining payload bytes of the current chunk directly from source.
      • Methods inherited from class java.io.InputStream

        available, mark, markSupported, read, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • read

         Integer read(ByteArray b, Integer off, Integer len)

        Bulk read that delegates the first byte to the single-byte read so that all chunk-boundary parsing (chunk headers, signatures, trailing checksum, end-of-stream detection) stays in one place, then copies the remaining payload bytes of the current chunk directly from source.

        The copy never crosses a chunk boundary (it is bounded by chunkLength), so all delimiter, CRLF and checksum handling remains the responsibility of read. A single call therefore returns at most the bytes remaining in the current chunk, which is a valid short read.