Class CRLFGeneratorStream
- java.lang.Object
-
- java.io.OutputStream
-
- org.pgpainless.encryption_signing.CRLFGeneratorStream
-
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
public class CRLFGeneratorStream extends OutputStream
OutputStreamwhich 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 OutputStreamcrlfOut
-
Constructor Summary
Constructors Constructor Description CRLFGeneratorStream(OutputStream crlfOut, StreamEncoding encoding)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidflush()voidwrite(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:
writein classOutputStream- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-
flush
public void flush() throws IOException- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream- Throws:
IOException
-
-