ccs.mime
Class QuotedPrintableInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FilterInputStream
          extended by ccs.mime.QuotedPrintableInputStream
All Implemented Interfaces:
java.io.Closeable

public class QuotedPrintableInputStream
extends java.io.FilterInputStream

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 decoder works one byte at a time. It is strongly recommended that the input be buffered.


Field Summary
 
Fields inherited from class java.io.FilterInputStream
in
 
Constructor Summary
QuotedPrintableInputStream(java.io.InputStream in)
           
 
Method Summary
 int read()
           
 int read(byte[] b, int off, int len)
           
 
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuotedPrintableInputStream

public QuotedPrintableInputStream(java.io.InputStream in)
Method Detail

read

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

read

public int read()
         throws java.io.IOException
Overrides:
read in class java.io.FilterInputStream
Throws:
java.io.IOException