Class ChunkedEncodedInputStream
- java.lang.Object
-
- java.io.InputStream
-
- software.amazon.awssdk.http.auth.aws.internal.signer.chunkedencoding.ChunkedEncodedInputStream
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public final class ChunkedEncodedInputStream extends InputStream
An implementation of chunk-transfer encoding, but by wrapping anInputStream. This implementation supports chunk-headers, chunk-extensions, and trailers.Per RFC-7230, a chunk-transfer encoded message is defined as:
chunked-body = *chunk last-chunk trailer-part CRLF chunk = chunk-size [ chunk-ext ] CRLF chunk-data CRLF chunk-size = 1*HEXDIG last-chunk = 1*("0") [ chunk-ext ] CRLF chunk-data = 1*OCTET ; a sequence of chunk-size octets
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classChunkedEncodedInputStream.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ChunkedEncodedInputStream.Builderbuilder()voidclose()intread()intread(byte[] b, int off, int len)voidreset()-
Methods inherited from class java.io.InputStream
available, mark, markSupported, read, skip
-
-
-
-
Method Detail
-
builder
public static ChunkedEncodedInputStream.Builder builder()
-
read
public int read() throws IOException- Specified by:
readin classInputStream- Throws:
IOException
-
read
public int read(byte[] b, int off, int len) throws IOException- Overrides:
readin classInputStream- Throws:
IOException
-
reset
public void reset() throws IOException- Overrides:
resetin classInputStream- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException
-
-