public class EncryptionStream extends OciCryptoInputStream
header
Constructor and Description |
---|
EncryptionStream(InputStream inputStream,
Cipher cipher,
EncryptionHeader header) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the CipherInputStream and InputStream
|
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 EncryptionStream(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
public void close() throws IOException
Close the CipherInputStream and InputStream
close
in interface Closeable
close
in interface AutoCloseable
close
in class InputStream
IOException
Copyright © 2016–2024. All rights reserved.