public final class AwsChunkedEncodingInputStream extends com.amazonaws.internal.SdkInputStream
| Constructor and Description |
|---|
AwsChunkedEncodingInputStream(InputStream in,
byte[] kSigning,
String datetime,
String keyPath,
String headerSignature,
AWS4Signer aws4Signer) |
AwsChunkedEncodingInputStream(InputStream in,
int maxBufferSize,
byte[] kSigning,
String datetime,
String keyPath,
String headerSignature,
AWS4Signer aws4Signer)
A wrapper of InputStream that implements pseudo-chunked-encoding.
|
| Modifier and Type | Method and Description |
|---|---|
static long |
calculateStreamContentLength(long originalLength) |
void |
mark(int readlimit)
The readlimit parameter is ignored.
|
boolean |
markSupported() |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
void |
reset()
Reset the stream, either by resetting the wrapped stream or using the
buffer created by this class.
|
long |
skip(long n) |
isMetricActivated, releaseavailable, close, readpublic AwsChunkedEncodingInputStream(InputStream in, byte[] kSigning, String datetime, String keyPath, String headerSignature, AWS4Signer aws4Signer)
public AwsChunkedEncodingInputStream(InputStream in, int maxBufferSize, byte[] kSigning, String datetime, String keyPath, String headerSignature, AWS4Signer aws4Signer)
in - The original InputStream.maxBufferSize - Maximum number of bytes buffered by this class.kSigning - Signing key.datetime - Datetime, as used in SigV4.keyPath - Keypath/Scope, as used in SigV4.headerSignature - The signature of the signed headers. This will be used for
calculating the signature of the first chunk.aws4Signer - The AWS4Signer used for hashing and signing.public int read()
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class InputStreamIOExceptionpublic long skip(long n)
throws IOException
skip in class InputStreamIOExceptionpublic boolean markSupported()
markSupported in class InputStreamInputStream.markSupported()public void mark(int readlimit)
mark in class InputStreampublic void reset()
throws IOException
reset in class InputStreamIOExceptionpublic static long calculateStreamContentLength(long originalLength)
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.