Class CipherLiteInputStream
- java.lang.Object
-
- java.io.InputStream
-
- java.io.FilterInputStream
-
- com.amazonaws.internal.SdkFilterInputStream
-
- com.amazonaws.services.s3.internal.crypto.CipherLiteInputStream
-
- All Implemented Interfaces:
com.amazonaws.internal.MetricAware,com.amazonaws.internal.Releasable,Closeable,AutoCloseable
- Direct Known Subclasses:
RenewableCipherLiteInputStream
public class CipherLiteInputStream extends com.amazonaws.internal.SdkFilterInputStream- Author:
- Hanson Char
- See Also:
CipherLite,GCMCipherLite
-
-
Field Summary
-
Fields inherited from class java.io.FilterInputStream
in
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedCipherLiteInputStream(InputStream is)CipherLiteInputStream(InputStream is, com.amazonaws.services.s3.internal.crypto.CipherLite cipherLite)CipherLiteInputStream(InputStream is, com.amazonaws.services.s3.internal.crypto.CipherLite c, int buffsize)CipherLiteInputStream(InputStream is, com.amazonaws.services.s3.internal.crypto.CipherLite c, int buffsize, boolean multipart, boolean lastMultiPart)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intavailable()voidclose()voidmark(int readlimit)booleanmarkSupported()intread()intread(byte[] b)intread(byte[] buf, int off, int target_len)voidreset()longskip(long n)-
Methods inherited from class com.amazonaws.internal.SdkFilterInputStream
abort, abortIfNeeded, isMetricActivated, release
-
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, transferTo
-
-
-
-
Constructor Detail
-
CipherLiteInputStream
public CipherLiteInputStream(InputStream is, com.amazonaws.services.s3.internal.crypto.CipherLite cipherLite)
-
CipherLiteInputStream
public CipherLiteInputStream(InputStream is, com.amazonaws.services.s3.internal.crypto.CipherLite c, int buffsize)
-
CipherLiteInputStream
public CipherLiteInputStream(InputStream is, com.amazonaws.services.s3.internal.crypto.CipherLite c, int buffsize, boolean multipart, boolean lastMultiPart)
-
CipherLiteInputStream
protected CipherLiteInputStream(InputStream is)
-
-
Method Detail
-
read
public int read() throws IOException- Overrides:
readin classcom.amazonaws.internal.SdkFilterInputStream- Throws:
IOException
-
read
public int read(byte[] b) throws IOException- Overrides:
readin classFilterInputStream- Throws:
IOException
-
read
public int read(byte[] buf, int off, int target_len) throws IOException- Overrides:
readin classcom.amazonaws.internal.SdkFilterInputStream- Throws:
IOException
-
skip
public long skip(long n) throws IOException- Overrides:
skipin classcom.amazonaws.internal.SdkFilterInputStream- Throws:
IOException
-
available
public int available()
- Overrides:
availablein classcom.amazonaws.internal.SdkFilterInputStream
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classcom.amazonaws.internal.SdkFilterInputStream- Throws:
IOException
-
markSupported
public boolean markSupported()
- Overrides:
markSupportedin classcom.amazonaws.internal.SdkFilterInputStream
-
mark
public void mark(int readlimit)
- Overrides:
markin classcom.amazonaws.internal.SdkFilterInputStream
-
reset
public void reset() throws IOExceptionSubclassing this method would need to take care in keeping all internal states consistent. REF: TT0036173414, ISSUE-JAVA-547.
- Overrides:
resetin classcom.amazonaws.internal.SdkFilterInputStream- Throws:
IOException
-
-