org.apache.james.mime4j.codec
Class QuotedPrintableInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by org.apache.james.mime4j.codec.QuotedPrintableInputStream
All Implemented Interfaces:
java.io.Closeable

public class QuotedPrintableInputStream
extends java.io.InputStream

Performs Quoted-Printable decoding on an underlying stream.


Constructor Summary
  QuotedPrintableInputStream(java.io.InputStream in)
           
  QuotedPrintableInputStream(java.io.InputStream in, boolean strict)
           
  QuotedPrintableInputStream(java.io.InputStream in, DecodeMonitor monitor)
           
protected QuotedPrintableInputStream(int bufsize, java.io.InputStream in, boolean strict)
           
protected QuotedPrintableInputStream(int bufsize, java.io.InputStream in, DecodeMonitor monitor)
           
 
Method Summary
 void close()
          Terminates Quoted-Printable coded content.
 int read()
           
 int read(byte[] b, int off, int len)
           
 
Methods inherited from class java.io.InputStream
available, 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,
                                  DecodeMonitor monitor)

QuotedPrintableInputStream

protected QuotedPrintableInputStream(int bufsize,
                                     java.io.InputStream in,
                                     DecodeMonitor monitor)

QuotedPrintableInputStream

protected QuotedPrintableInputStream(int bufsize,
                                     java.io.InputStream in,
                                     boolean strict)

QuotedPrintableInputStream

public QuotedPrintableInputStream(java.io.InputStream in,
                                  boolean strict)

QuotedPrintableInputStream

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

close

public void close()
           throws java.io.IOException
Terminates Quoted-Printable coded content. This method does NOT close the underlying input stream.

Specified by:
close in interface java.io.Closeable
Overrides:
close in class java.io.InputStream
Throws:
java.io.IOException - on I/O errors.

read

public int read()
         throws java.io.IOException
Specified by:
read in class java.io.InputStream
Throws:
java.io.IOException

read

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


Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.