Class DecryptionStream
- java.lang.Object
- 
- java.io.InputStream
- 
- com.oracle.bmc.encryption.OciCryptoInputStream
- 
- com.oracle.bmc.encryption.internal.DecryptionStream
 
 
 
- 
- All Implemented Interfaces:
- Closeable,- AutoCloseable
 
 public class DecryptionStream extends OciCryptoInputStream 
- 
- 
Field Summary- 
Fields inherited from class com.oracle.bmc.encryption.OciCryptoInputStreamheader
 
- 
 - 
Constructor SummaryConstructors Constructor Description DecryptionStream(InputStream inputStream, Cipher cipher, EncryptionHeader header)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()protected byte[]decrypt()intread(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- 
DecryptionStreampublic DecryptionStream(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
 
 - 
decryptprotected byte[] decrypt() throws IOException- Throws:
- IOException
 
 - 
closepublic void close() throws IOException- Specified by:
- closein interface- AutoCloseable
- Specified by:
- closein interface- Closeable
- Overrides:
- closein class- InputStream
- Throws:
- IOException
 
 
- 
 
-