gnu.mail.util

Class QPInputStream

Known Direct Subclasses:
QInputStream

public class QPInputStream
extends FilterInputStream

A Quoted-Printable decoder stream.

Field Summary

protected byte[]
buf
protected int
spaceCount
The number of times read() will return a space.

Constructor Summary

QPInputStream(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.

Field Details

buf

protected byte[] buf


spaceCount

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

Constructor Details

QPInputStream

public QPInputStream(InputStream in)
Constructor.

Parameters:
in - the underlying input stream.

Method Details

available

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


markSupported

public boolean markSupported()
Mark is not supported.


read

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


read

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