| java.lang.Object java.io.OutputStream java.io.FilterOutputStream org.apache.james.util.ExtraDotOutputStream
ExtraDotOutputStream | public class ExtraDotOutputStream extends FilterOutputStream (Code) | | Adds extra dot if dot occurs in message body at beginning of line (according to RFC1939)
Compare also org.apache.james.smtpserver.SMTPInputStream
|
Field Summary | |
protected int | countLast0A0D Counter for number of last (0A or 0D). |
Method Summary | |
public void | checkCRLFTerminator() Ensure that the stream is CRLF terminated. | public void | write(int b) Writes a byte to the stream, adding dots where appropriate. |
countLast0A0D | protected int countLast0A0D(Code) | | Counter for number of last (0A or 0D).
|
ExtraDotOutputStream | public ExtraDotOutputStream(OutputStream out)(Code) | | Constructor that wraps an OutputStream.
Parameters: out - the OutputStream to be wrapped |
checkCRLFTerminator | public void checkCRLFTerminator() throws IOException(Code) | | Ensure that the stream is CRLF terminated.
throws: IOException - if an error occurs writing the byte |
write | public void write(int b) throws IOException(Code) | | Writes a byte to the stream, adding dots where appropriate.
Also fixes any naked CR or LF to the RFC 2821 mandated CFLF
pairing.
Parameters: b - the byte to write throws: IOException - if an error occurs writing the byte |
|
|