- java.lang.Object
-
- java.io.OutputStream
-
- io.github.mmm.crypto.io.OutputStreamWrapper
-
- io.github.mmm.crypto.crypt.CryptorOutputStream
-
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
public class CryptorOutputStream extends OutputStreamWrapper
- Since:
- 1.0.0
- Author:
- Joerg Hohwiller (hohwille at users.sourceforge.net)
-
-
Constructor Summary
Constructors Constructor Description CryptorOutputStream(Cryptor cryptor, OutputStream delegate)The constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidwrite(byte[] b, int off, int len)voidwrite(int b)-
Methods inherited from class io.github.mmm.crypto.io.OutputStreamWrapper
getDelegate, isClosed, requireNotClosed, write
-
Methods inherited from class java.io.OutputStream
flush, nullOutputStream
-
-
-
-
Constructor Detail
-
CryptorOutputStream
public CryptorOutputStream(Cryptor cryptor, OutputStream delegate)
The constructor.- Parameters:
cryptor- theCryptor.delegate- theOutputStreamto wrap.
-
-
Method Detail
-
write
public void write(byte[] b, int off, int len) throws IOException- Overrides:
writein classOutputStreamWrapper- Throws:
IOException
-
write
public void write(int b) throws IOException- Overrides:
writein classOutputStreamWrapper- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStreamWrapper- Throws:
IOException
-
-