Top Description Fields Constructors Methods
com.sun.mail.util

public Class QDecoderStream

extends QPDecoderStream
Class Inheritance
Imports
java.io.*

This class implements a Q Decoder as defined in RFC 2047 for decoding MIME headers. It subclasses the QPDecoderStream class.
Author
John Mani

Field Summary

Inherited from com.sun.mail.util.QPDecoderStream:
baspaces

Constructor Summary

AccessConstructor and Description
public
QDecoderStream(InputStream
the input stream
in
)

Create a Q-decoder that decodes the specified input stream.

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

the next byte of data, or -1 if the end of the stream is reached.
read
()

Overrides com.sun.mail.util.QPDecoderStream.read.

Read the next decoded byte from this input stream.
Inherited from com.sun.mail.util.QPDecoderStream:
availablemarkSupportedreadskip

Constructor Detail

QDecoderStreamback to summary
public QDecoderStream(InputStream in)

Create a Q-decoder that decodes the specified input stream.

Parameters
in:InputStream

the input stream

Method Detail

readback to summary
public int read() throws IOException

Overrides com.sun.mail.util.QPDecoderStream.read.

Read the next decoded byte from this input stream. The byte is returned as an int in the range 0 to 255. If no byte is available because the end of the stream has been reached, the value -1 is returned. This method blocks until input data is available, the end of the stream is detected, or an exception is thrown.

Returns:int

the next byte of data, or -1 if the end of the stream is reached.

Annotations
@Override
Exceptions
IOException:
if an I/O error occurs.