gnu.mail.util
Class QPInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FilterInputStream
          extended by gnu.mail.util.QPInputStream
All Implemented Interfaces:
java.io.Closeable
Direct Known Subclasses:
QInputStream

public class QPInputStream
extends java.io.FilterInputStream

A Quoted-Printable decoder stream.


Field Summary
protected  byte[] buf
           
protected  int spaceCount
          The number of times read() will return a space.
 
Fields inherited from class java.io.FilterInputStream
in
 
Constructor Summary
QPInputStream(java.io.InputStream in)
          Constructor.
 
Method Summary
 int available()
          Returns the number of bytes that can be read without blocking.
 boolean markSupported()
          Mark is not supported.
 int read()
          Read a character from the stream.
 int read(byte[] bytes, int off, int len)
          Reads from the underlying stream into the specified byte array.
 
Methods inherited from class java.io.FilterInputStream
close, mark, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

buf

protected byte[] buf

spaceCount

protected int spaceCount
The number of times read() will return a space.

Constructor Detail

QPInputStream

public QPInputStream(java.io.InputStream in)
Constructor.

Parameters:
in - the underlying input stream.
Method Detail

read

public int read()
         throws java.io.IOException
Read a character from the stream.

Overrides:
read in class java.io.FilterInputStream
Throws:
java.io.IOException

read

public int read(byte[] bytes,
                int off,
                int len)
         throws java.io.IOException
Reads from the underlying stream into the specified byte array.

Overrides:
read in class java.io.FilterInputStream
Throws:
java.io.IOException

markSupported

public boolean markSupported()
Mark is not supported.

Overrides:
markSupported in class java.io.FilterInputStream

available

public int available()
              throws java.io.IOException
Returns the number of bytes that can be read without blocking.

Overrides:
available in class java.io.FilterInputStream
Throws:
java.io.IOException