public final class ChunkedEncodedInputStream extends InputStream
InputStream. 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
| Modifier and Type | Class and Description |
|---|---|
static class |
ChunkedEncodedInputStream.Builder |
| Modifier and Type | Method and Description |
|---|---|
static ChunkedEncodedInputStream.Builder |
builder() |
void |
close() |
int |
read() |
void |
reset() |
available, mark, markSupported, read, read, skippublic static ChunkedEncodedInputStream.Builder builder()
public int read()
throws IOException
read in class InputStreamIOExceptionpublic void reset()
throws IOException
reset in class InputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionCopyright © 2023. All rights reserved.