public class CipherLiteInputStream extends SdkFilterInputStream
CipherLite
,
GCMCipherLite
Modifier and Type | Field and Description |
---|---|
private byte[] |
bufin |
private byte[] |
bufout |
private CipherLite |
cipherLite |
private int |
curr_pos |
private static int |
DEFAULT_IN_BUFFER_SIZE |
private boolean |
eof |
private boolean |
lastMultiPart
True if this is the last part of a multipart upload; false otherwise.
|
private int |
max_pos |
private static int |
MAX_RETRY |
private boolean |
multipart
True if this input stream is currently involved in a multipart uploads;
false otherwise.
|
Modifier | Constructor and Description |
---|---|
protected |
CipherLiteInputStream(java.io.InputStream is) |
|
CipherLiteInputStream(java.io.InputStream is,
CipherLite cipherLite) |
|
CipherLiteInputStream(java.io.InputStream is,
CipherLite c,
int buffsize) |
|
CipherLiteInputStream(java.io.InputStream is,
CipherLite c,
int buffsize,
boolean multipart,
boolean lastMultiPart) |
Modifier and Type | Method and Description |
---|---|
int |
available() |
void |
close() |
void |
mark(int readlimit) |
boolean |
markSupported() |
private int |
nextChunk()
Reads and process the next chunk of data into memory.
|
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] buf,
int off,
int target_len) |
(package private) void |
renewCipherLite() |
void |
reset() |
(package private) void |
resetInternal() |
long |
skip(long n) |
abort, abortIfNeeded, isMetricActivated, release
private static final int MAX_RETRY
private static final int DEFAULT_IN_BUFFER_SIZE
private CipherLite cipherLite
private final boolean multipart
private final boolean lastMultiPart
private boolean eof
private byte[] bufin
private byte[] bufout
private int curr_pos
private int max_pos
public CipherLiteInputStream(java.io.InputStream is, CipherLite cipherLite)
public CipherLiteInputStream(java.io.InputStream is, CipherLite c, int buffsize)
public CipherLiteInputStream(java.io.InputStream is, CipherLite c, int buffsize, boolean multipart, boolean lastMultiPart)
protected CipherLiteInputStream(java.io.InputStream is)
public int read() throws java.io.IOException
read
in class SdkFilterInputStream
java.io.IOException
public int read(byte[] b) throws java.io.IOException
read
in class java.io.FilterInputStream
java.io.IOException
public int read(byte[] buf, int off, int target_len) throws java.io.IOException
read
in class SdkFilterInputStream
java.io.IOException
public long skip(long n) throws java.io.IOException
skip
in class SdkFilterInputStream
java.io.IOException
public int available()
available
in class SdkFilterInputStream
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class SdkFilterInputStream
java.io.IOException
public boolean markSupported()
markSupported
in class SdkFilterInputStream
public void mark(int readlimit)
mark
in class SdkFilterInputStream
public void reset() throws java.io.IOException
Subclassing this method would need to take care in keeping all internal states consistent. REF: TT0036173414, ISSUE-JAVA-547.
reset
in class SdkFilterInputStream
java.io.IOException
final void resetInternal()
private int nextChunk() throws java.io.IOException
java.io.IOException
- if there is an IO exception from the underlying input streamjava.lang.SecurityException
- if there is authentication failurevoid renewCipherLite()