public final class RenewableCipherInputStream extends CipherInputStream
CipherInputStream 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| 构造器和说明 |
|---|
RenewableCipherInputStream(InputStream is,
CryptoCipher cryptoCipher) |
RenewableCipherInputStream(InputStream is,
CryptoCipher c,
int buffsize) |
| 限定符和类型 | 方法和说明 |
|---|---|
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)
Note: This implementation will only skip up to the end of the buffered data,
potentially skipping 0 bytes.
|
available, closeabort, abortIfNeeded, getDelegateStream, isAborted, releasepublic RenewableCipherInputStream(InputStream is, CryptoCipher cryptoCipher)
public RenewableCipherInputStream(InputStream is, CryptoCipher c, int buffsize)
public boolean markSupported()
markSupported 在类中 CipherInputStreampublic void mark(int readlimit)
mark 在类中 CipherInputStreamUnsupportedOperationException - 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 在类中 CipherInputStreamIOExceptionpublic int read()
throws IOException
read 在类中 CipherInputStreamIOExceptionpublic int read(byte[] b)
throws IOException
read 在类中 CipherInputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read 在类中 CipherInputStreamIOExceptionpublic long skip(long n)
throws IOException
CipherInputStreamskip 在类中 CipherInputStreamIOExceptionCopyright © 2020. All Rights Reserved.