Class EncryptionStream
- java.lang.Object
- 
- java.io.InputStream
- 
- com.oracle.bmc.encryption.OciCryptoInputStream
- 
- com.oracle.bmc.encryption.internal.EncryptionStream
 
 
 
- 
- All Implemented Interfaces:
- Closeable,- AutoCloseable
 
 public class EncryptionStream extends OciCryptoInputStream 
- 
- 
Field Summary- 
Fields inherited from class com.oracle.bmc.encryption.OciCryptoInputStreamheader
 
- 
 - 
Constructor SummaryConstructors Constructor Description EncryptionStream(InputStream inputStream, Cipher cipher, EncryptionHeader header)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Close the CipherInputStream and InputStreamintread(byte[] b)Reads up to len bytes of data from the input stream into an array of bytes.- 
Methods inherited from class com.oracle.bmc.encryption.OciCryptoInputStreamgetContext, read
 - 
Methods inherited from class java.io.InputStreamavailable, mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, transferTo
 
- 
 
- 
- 
- 
Constructor Detail- 
EncryptionStreampublic EncryptionStream(InputStream inputStream, Cipher cipher, EncryptionHeader header) 
 
- 
 - 
Method Detail- 
readpublic int read(byte[] b) throws IOExceptionReads 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. - Overrides:
- readin class- InputStream
- Parameters:
- b- The buffer into which the data is read.
- Returns:
- The total number of bytes read into the buffer, or -1 if there is no more data because the end of the stream has been reached.
- Throws:
- IOException
 
 - 
closepublic void close() throws IOExceptionClose the CipherInputStream and InputStream- Specified by:
- closein interface- AutoCloseable
- Specified by:
- closein interface- Closeable
- Overrides:
- closein class- InputStream
- Throws:
- IOException
 
 
- 
 
-