public class DecryptionStream extends OciCryptoInputStream
header
Constructor and Description |
---|
DecryptionStream(InputStream inputStream,
Cipher cipher,
EncryptionHeader header) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected byte[] |
decrypt() |
int |
read(byte[] b)
Reads up to len bytes of data from the input stream into an array of bytes.
|
getContext, read
available, mark, markSupported, read, reset, skip
public DecryptionStream(InputStream inputStream, Cipher cipher, EncryptionHeader header)
public int read(byte[] b) throws IOException
Reads up to len bytes of data from the input stream into an array of bytes. An attempt is made to read as many as len bytes, but a smaller number may be read. The number of bytes actually read is returned as an integer.
read
in class InputStream
b
- The buffer into which the data is read.IOException
protected byte[] decrypt() throws IOException
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class InputStream
IOException
Copyright © 2016–2024. All rights reserved.