Package org.bouncycastle.mail.smime.util
Class CRLFOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- java.io.FilterOutputStream
-
- org.bouncycastle.mail.smime.util.CRLFOutputStream
-
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
public class CRLFOutputStream extends FilterOutputStream
-
-
Field Summary
Fields Modifier and Type Field Description protected int
lastb
protected static byte[]
newline
-
Fields inherited from class java.io.FilterOutputStream
out
-
-
Constructor Summary
Constructors Constructor Description CRLFOutputStream(OutputStream outputstream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
write(byte[] buf)
void
write(byte[] buf, int off, int len)
void
write(int i)
void
writeln()
-
Methods inherited from class java.io.FilterOutputStream
close, flush
-
Methods inherited from class java.io.OutputStream
nullOutputStream
-
-
-
-
Constructor Detail
-
CRLFOutputStream
public CRLFOutputStream(OutputStream outputstream)
-
-
Method Detail
-
write
public void write(int i) throws IOException
- Overrides:
write
in classFilterOutputStream
- Throws:
IOException
-
write
public void write(byte[] buf) throws IOException
- Overrides:
write
in classFilterOutputStream
- Throws:
IOException
-
write
public void write(byte[] buf, int off, int len) throws IOException
- Overrides:
write
in classFilterOutputStream
- Throws:
IOException
-
writeln
public void writeln() throws IOException
- Throws:
IOException
-
-