to.etc.smtp
Class QuotedPrintableOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by to.etc.smtp.QuotedPrintableOutputStream
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable

public class QuotedPrintableOutputStream
extends java.io.OutputStream

This is a wrapper for email-data streams. It should encapsulate the primary data stream sent as the content of the DATA command to the mail server. It ensures that data sent to the mail server does not start with a single '.' by adding another dot to all lines starting with it. In addition it handles line length encapsulation by splitting up lines that are longer than 76 characters in soft-quoted lines. Email is hell.

Author:
Frits Jalvingh Created on Jan 24, 2010

Constructor Summary
QuotedPrintableOutputStream(java.io.OutputStream os)
           
 
Method Summary
 void write(int b)
           
 
Methods inherited from class java.io.OutputStream
close, flush, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuotedPrintableOutputStream

public QuotedPrintableOutputStream(java.io.OutputStream os)
Method Detail

write

public void write(int b)
           throws java.io.IOException
Specified by:
write in class java.io.OutputStream
Throws:
java.io.IOException