|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.ObjectSdkInputStream
com.amazonaws.auth.AwsChunkedEncodingInputStream
public final class AwsChunkedEncodingInputStream
A wrapper class of InputStream that implements chunked-encoding.
| Constructor Summary | |
|---|---|
AwsChunkedEncodingInputStream(java.io.InputStream in,
byte[] kSigning,
java.lang.String datetime,
java.lang.String keyPath,
java.lang.String headerSignature,
AWS4Signer aws4Signer)
|
|
AwsChunkedEncodingInputStream(java.io.InputStream in,
int maxBufferSize,
byte[] kSigning,
java.lang.String datetime,
java.lang.String keyPath,
java.lang.String headerSignature,
AWS4Signer aws4Signer)
A wrapper of InputStream that implements pseudo-chunked-encoding. |
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AwsChunkedEncodingInputStream(java.io.InputStream in,
byte[] kSigning,
java.lang.String datetime,
java.lang.String keyPath,
java.lang.String headerSignature,
AWS4Signer aws4Signer)
public AwsChunkedEncodingInputStream(java.io.InputStream in,
int maxBufferSize,
byte[] kSigning,
java.lang.String datetime,
java.lang.String keyPath,
java.lang.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.| Method Detail |
|---|
public int read()
throws java.io.IOException
java.io.IOException
public int read(byte[] b,
int off,
int len)
throws java.io.IOException
java.io.IOException
public long skip(long n)
throws java.io.IOException
java.io.IOExceptionpublic boolean markSupported()
InputStream.markSupported()public void mark(int readlimit)
public void reset()
throws java.io.IOException
java.io.IOExceptionpublic static long calculateStreamContentLength(long originalLength)
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||