⇒ Index (Frames) |  ⇒ Index (No Frames) |  ⇒ Package |  ⇒ Package Tree |  ⇒ Full Tree 
gnu.mail.util

Class QPInputStream

FilterInputStream
|
+--gnu.mail.util.QPInputStream

Known Direct Subclasses:
QInputStream


public class QPInputStream
extends FilterInputStream

A Quoted-Printable decoder stream.
Author:

Field Summary

byte[]

buf

A Quoted-Printable decoder stream.

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

A Quoted-Printable decoder stream.

Author:

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()

Returns the number of bytes that can be read without blocking.


markSupported

public boolean markSupported()

Mark is not supported.


read

public int read()

Read a character from the stream.


read

public int read(byte[] bytes, int off, int len)

Reads from the underlying stream into the specified byte array.

Parameters:
bytes
off
len