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
public final class RenewableCipherLiteInputStream extends CipherLiteInputStream
A specific kind ofCipherLiteInputStream
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
Constructors Modifier Constructor Description protected
RenewableCipherLiteInputStream(InputStream is)
RenewableCipherLiteInputStream(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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).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).int
read()
int
read(byte[] b)
int
read(byte[] b, int off, int len)
void
reset()
Resets back to the very beginning of the stream.long
skip(long n)
-
Methods inherited from class com.amazonaws.services.s3.internal.crypto.CipherLiteInputStream
available, close
-
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
-
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
protected RenewableCipherLiteInputStream(InputStream is)
-
-
Method Detail
-
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:
markSupported
in 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:
mark
in classCipherLiteInputStream
- Throws:
UnsupportedOperationException
- if mark is called after this stream has been accessed.
-
reset
public void reset() throws IOException
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:
reset
in classCipherLiteInputStream
- Throws:
IOException
-
read
public int read() throws IOException
- Overrides:
read
in classCipherLiteInputStream
- Throws:
IOException
-
read
public int read(byte[] b) throws IOException
- Overrides:
read
in classCipherLiteInputStream
- Throws:
IOException
-
read
public int read(byte[] b, int off, int len) throws IOException
- Overrides:
read
in classCipherLiteInputStream
- Throws:
IOException
-
skip
public long skip(long n) throws IOException
- Overrides:
skip
in classCipherLiteInputStream
- Throws:
IOException
-
-