public final class RenewableCipherLiteInputStream extends CipherLiteInputStream
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).in
Modifier | Constructor and Description |
---|---|
protected |
RenewableCipherLiteInputStream(InputStream is) |
|
RenewableCipherLiteInputStream(InputStream is,
CipherLite cipherLite) |
|
RenewableCipherLiteInputStream(InputStream is,
CipherLite c,
int buffsize) |
|
RenewableCipherLiteInputStream(InputStream is,
CipherLite c,
int buffsize,
boolean multipart,
boolean lastMultiPart) |
Modifier and Type | Method and 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) |
available, close
abort, abortIfNeeded, getDelegateStream, isAborted, isMetricActivated, release
public RenewableCipherLiteInputStream(InputStream is, CipherLite cipherLite)
public RenewableCipherLiteInputStream(InputStream is, CipherLite c, int buffsize)
public RenewableCipherLiteInputStream(InputStream is, CipherLite c, int buffsize, boolean multipart, boolean lastMultiPart)
protected RenewableCipherLiteInputStream(InputStream is)
public boolean markSupported()
markSupported
in class CipherLiteInputStream
public void mark(int readlimit)
mark
in class CipherLiteInputStream
UnsupportedOperationException
- if mark is called after this stream has been accessed.public void reset() throws IOException
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).
reset
in class CipherLiteInputStream
IOException
public int read() throws IOException
read
in class CipherLiteInputStream
IOException
public int read(byte[] b) throws IOException
read
in class CipherLiteInputStream
IOException
public int read(byte[] b, int off, int len) throws IOException
read
in class CipherLiteInputStream
IOException
public long skip(long n) throws IOException
CipherLiteInputStream
Note: This implementation will only skip up to the end of the buffered data, potentially skipping 0 bytes.
skip
in class CipherLiteInputStream
IOException
Copyright © 2024. All rights reserved.