public class CryptorInputStream extends InputStreamWrapper
| Modifier and Type | Field and Description |
|---|---|
private Cryptor |
cryptor |
private boolean |
done |
private byte[] |
inBuffer |
private byte[] |
outBuffer |
private int |
outEnd |
private int |
outStart |
| Constructor and Description |
|---|
CryptorInputStream(Cryptor cryptor,
InputStream delegate)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
private int |
fillBuffer() |
private boolean |
hasData() |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
long |
skip(long n) |
getDelegate, read, requireNotClosedmark, markSupported, resetprivate Cryptor cryptor
private final byte[] inBuffer
private byte[] outBuffer
private int outStart
private int outEnd
private boolean done
public CryptorInputStream(Cryptor cryptor, InputStream delegate)
cryptor - the Cryptor.delegate - the InputStream to wrap.private int fillBuffer()
throws IOException
IOExceptionprivate boolean hasData()
throws IOException
IOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class InputStreamWrapperIOExceptionpublic int read()
throws IOException
read in class InputStreamWrapperIOExceptionpublic long skip(long n)
throws IOException
skip in class InputStreamIOExceptionpublic int available()
throws IOException
available in class InputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamWrapperIOExceptionCopyright © 2001–2019 mmm-Team. All rights reserved.