- 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 void
close()
void
write(byte[] b, int off, int len)
void
write(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
- theOutputStream
to wrap.
-
-
Method Detail
-
write
public void write(byte[] b, int off, int len) throws IOException
- Overrides:
write
in classOutputStreamWrapper
- Throws:
IOException
-
write
public void write(int b) throws IOException
- Overrides:
write
in classOutputStreamWrapper
- Throws:
IOException
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classOutputStreamWrapper
- Throws:
IOException
-
-