public class

QDecoderStream

extends QPDecoderStream
java.lang.Object
   ↳ java.io.InputStream
     ↳ java.io.FilterInputStream
       ↳ com.google.code.com.sun.mail.util.QPDecoderStream
         ↳ com.google.code.com.sun.mail.util.QDecoderStream

Class Overview

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

Summary

[Expand]
Inherited Constants
From class java.io.InputStream
[Expand]
Inherited Fields
From class com.google.code.com.sun.mail.util.QPDecoderStream
From class java.io.FilterInputStream
Public Constructors
QDecoderStream(InputStream in)
Create a Q-decoder that decodes the specified input stream.
Public Methods
int read()
Read the next decoded byte from this input stream.
[Expand]
Inherited Methods
From class com.google.code.com.sun.mail.util.QPDecoderStream
From class java.io.FilterInputStream
From class java.io.InputStream
From class java.lang.Object
From interface java.io.Closeable

Public Constructors

public QDecoderStream (InputStream in)

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

Parameters
in The input stream

Public Methods

public int 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
  • the next byte of data, or -1 if the end of the stream is reached.
Throws
IOException if an I/O error occurs.