public class SmartDecryptingInputStream extends ByteArrayInputStream
buf, count, mark, pos| Constructor and Description |
|---|
SmartDecryptingInputStream(CryptoStreamFactory cryptoStreamFactory,
InputStream is)
Constructor
|
SmartDecryptingInputStream(CryptoStreamFactory cryptoStreamFactory,
InputStream is,
char[] password)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
long |
copy(InputStream is,
OutputStream os)
Pumps the input stream to the output stream.
|
available, close, mark, markSupported, read, read, reset, skipreadpublic SmartDecryptingInputStream(CryptoStreamFactory cryptoStreamFactory, InputStream is) throws IOException, GeneralSecurityException
cryptoStreamFactory - the CryptoStreamFactory for creating a cipher streamis - the input stream to be decryptedIOException - if file not foundGeneralSecurityException - if security check failspublic SmartDecryptingInputStream(CryptoStreamFactory cryptoStreamFactory, InputStream is, char[] password) throws IOException, GeneralSecurityException
cryptoStreamFactory - the CryptoStreamFactory for creating a cipher streamis - the input stream to be decryptedpassword - the password for decryptionIOException - if file not foundGeneralSecurityException - if security check failspublic long copy(InputStream is, OutputStream os) throws IOException
is - the source input streamos - the target output streamIOException - the copying failedCopyright © 2008–2020 The Apache Software Foundation. All rights reserved.