ccs.mime
Class QuotedPrintableOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by java.io.FilterOutputStream
          extended by ccs.mime.QuotedPrintableOutputStream
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable

public class QuotedPrintableOutputStream
extends java.io.FilterOutputStream

Quoted-Printable is a standard MIME content transfer encoding. It is suitable for transferring text which contains some 8-bit bytes (ie. bytes which have the high-order bit set) over a 7-bit transport such as SMTP. Many UTF-8 encoded messages will fall into this category. It is not recommended for binary. If the number of 8-bit bytes exceeds one-fifth of the number of 7-bit bytes, it is more efficient to use base-64 encoding instead. This encoder works one byte at a time. It is strongly recommended that the output be buffered.


Field Summary
 
Fields inherited from class java.io.FilterOutputStream
out
 
Constructor Summary
QuotedPrintableOutputStream(java.io.OutputStream out)
           
 
Method Summary
 void write(byte[] b, int off, int len)
           
 void write(int b)
           
 
Methods inherited from class java.io.FilterOutputStream
close, flush, 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 out)
Method Detail

write

public void write(byte[] b,
                  int off,
                  int len)
           throws java.io.IOException
Overrides:
write in class java.io.FilterOutputStream
Throws:
java.io.IOException

write

public void write(int b)
           throws java.io.IOException
Overrides:
write in class java.io.FilterOutputStream
Throws:
java.io.IOException