public class RFC2822OutputStream
extends java.io.FilterOutputStream
Modifier and Type | Field and Description |
---|---|
protected int |
count
The number of bytes in the line.
|
static int |
CR
The CR octet.
|
static int |
LF
The LF octet.
|
Constructor and Description |
---|
RFC2822OutputStream(java.io.OutputStream out)
Constructs an RFC2822 output stream
connected to the specified output stream.
|
public static final int CR
public static final int LF
protected int count
public RFC2822OutputStream(java.io.OutputStream out)
out
- the underlying OutputStreampublic void write(int ch) throws java.io.IOException
write
in class java.io.FilterOutputStream
java.io.IOException
- if an I/O error occurredpublic void write(byte[] b) throws java.io.IOException
write
in class java.io.FilterOutputStream
java.io.IOException
- if an I/O error occurredpublic void write(byte[] b, int off, int len) throws java.io.IOException
write
in class java.io.FilterOutputStream
java.io.IOException
- if an I/O error occurred