Class CRLFGeneratorStream
- java.lang.Object
-
- java.io.OutputStream
-
- org.pgpainless.encryption_signing.CRLFGeneratorStream
-
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
public class CRLFGeneratorStream extends OutputStream
OutputStream
which applies CR-LF encoding of its input data, based on the desiredStreamEncoding
. This implementation originates from the Bouncy Castle library.
-
-
Field Summary
Fields Modifier and Type Field Description protected OutputStream
crlfOut
-
Constructor Summary
Constructors Constructor Description CRLFGeneratorStream(OutputStream crlfOut, StreamEncoding encoding)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
flush()
void
write(int b)
-
Methods inherited from class java.io.OutputStream
nullOutputStream, write, write
-
-
-
-
Field Detail
-
crlfOut
protected final OutputStream crlfOut
-
-
Constructor Detail
-
CRLFGeneratorStream
public CRLFGeneratorStream(OutputStream crlfOut, StreamEncoding encoding)
-
-
Method Detail
-
write
public void write(int b) throws IOException
- Specified by:
write
in classOutputStream
- Throws:
IOException
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classOutputStream
- Throws:
IOException
-
flush
public void flush() throws IOException
- Specified by:
flush
in interfaceFlushable
- Overrides:
flush
in classOutputStream
- Throws:
IOException
-
-