Class RenewableCipherLiteInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
com.amazonaws.internal.SdkFilterInputStream
com.amazonaws.services.s3.internal.crypto.CipherLiteInputStream
com.amazonaws.services.s3.internal.crypto.RenewableCipherLiteInputStream
- All Implemented Interfaces:
com.amazonaws.internal.MetricAware,com.amazonaws.internal.Releasable,Closeable,AutoCloseable
A specific kind of
CipherLiteInputStream that supports partial
mark-and-reset in the sense that, if the underlying input stream supports
mark-and-reset, this input stream can then be marked at and get reset back to
the very beginning of the stream (but not anywhere else).-
Field Summary
Fields inherited from class java.io.FilterInputStream
in -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedRenewableCipherLiteInputStream(InputStream is, com.amazonaws.services.s3.internal.crypto.CipherLite cipherLite) RenewableCipherLiteInputStream(InputStream is, com.amazonaws.services.s3.internal.crypto.CipherLite c, int buffsize) RenewableCipherLiteInputStream(InputStream is, com.amazonaws.services.s3.internal.crypto.CipherLite c, int buffsize, boolean multipart, boolean lastMultiPart) -
Method Summary
Modifier and TypeMethodDescriptionvoidmark(int readlimit) Mark and reset is currently only partially supported, in the sense that, if the underlying input stream supports mark-and-reset, this input stream can then be marked at and get reset back to the very beginning of the stream (but not anywhere else).booleanMark and reset is currently only partially supported, in the sense that, if the underlying input stream supports mark-and-reset, this input stream can then be marked at and get reset back to the very beginning of the stream (but not anywhere else).intread()intread(byte[] b) intread(byte[] b, int off, int len) voidreset()Resets back to the very beginning of the stream.longskip(long n) Methods inherited from class com.amazonaws.services.s3.internal.crypto.CipherLiteInputStream
available, closeMethods inherited from class com.amazonaws.internal.SdkFilterInputStream
abort, abortIfNeeded, isMetricActivated, releaseMethods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Constructor Details
-
RenewableCipherLiteInputStream
public RenewableCipherLiteInputStream(InputStream is, com.amazonaws.services.s3.internal.crypto.CipherLite cipherLite) -
RenewableCipherLiteInputStream
public RenewableCipherLiteInputStream(InputStream is, com.amazonaws.services.s3.internal.crypto.CipherLite c, int buffsize) -
RenewableCipherLiteInputStream
public RenewableCipherLiteInputStream(InputStream is, com.amazonaws.services.s3.internal.crypto.CipherLite c, int buffsize, boolean multipart, boolean lastMultiPart) -
RenewableCipherLiteInputStream
-
-
Method Details
-
markSupported
public boolean markSupported()Mark and reset is currently only partially supported, in the sense that, if the underlying input stream supports mark-and-reset, this input stream can then be marked at and get reset back to the very beginning of the stream (but not anywhere else).- Overrides:
markSupportedin classCipherLiteInputStream
-
mark
public void mark(int readlimit) Mark and reset is currently only partially supported, in the sense that, if the underlying input stream supports mark-and-reset, this input stream can then be marked at and get reset back to the very beginning of the stream (but not anywhere else).- Overrides:
markin classCipherLiteInputStream- Throws:
UnsupportedOperationException- if mark is called after this stream has been accessed.
-
reset
Resets back to the very beginning of the stream.Mark and reset is currently only partially supported, in the sense that, if the underlying input stream supports mark-and-reset, this input stream can then be marked at and get reset back to the very beginning of the stream (but not anywhere else).
- Overrides:
resetin classCipherLiteInputStream- Throws:
IOException
-
read
- Overrides:
readin classCipherLiteInputStream- Throws:
IOException
-
read
- Overrides:
readin classCipherLiteInputStream- Throws:
IOException
-
read
- Overrides:
readin classCipherLiteInputStream- Throws:
IOException
-
skip
- Overrides:
skipin classCipherLiteInputStream- Throws:
IOException
-