public class

QEncoderStream

extends QPEncoderStream
java.lang.Object
   ↳ java.io.OutputStream
     ↳ java.io.FilterOutputStream
       ↳ com.google.code.com.sun.mail.util.QPEncoderStream
         ↳ com.google.code.com.sun.mail.util.QEncoderStream

Class Overview

This class implements a Q Encoder as defined by RFC 2047 for encoding MIME headers. It subclasses the QPEncoderStream class.

Summary

Fields
private static String TEXT_SPECIALS
private static String WORD_SPECIALS
private String specials
[Expand]
Inherited Fields
From class com.google.code.com.sun.mail.util.QPEncoderStream
From class java.io.FilterOutputStream
Public Constructors
QEncoderStream(OutputStream out, boolean encodingWord)
Create a Q encoder that encodes the specified input stream
Public Methods
static int encodedLength(byte[] b, boolean encodingWord)
Returns the length of the encoded version of this byte array.
void write(int c)
Encodes the specified byte to this output stream.
[Expand]
Inherited Methods
From class com.google.code.com.sun.mail.util.QPEncoderStream
From class java.io.FilterOutputStream
From class java.io.OutputStream
From class java.lang.Object
From interface java.io.Closeable
From interface java.io.Flushable

Fields

private static String TEXT_SPECIALS

private static String WORD_SPECIALS

private String specials

Public Constructors

public QEncoderStream (OutputStream out, boolean encodingWord)

Create a Q encoder that encodes the specified input stream

Parameters
out The output stream
encodingWord True if we are Q-encoding a word within a phrase.

Public Methods

public static int encodedLength (byte[] b, boolean encodingWord)

Returns the length of the encoded version of this byte array.

Parameters
b
encodingWord

public void write (int c)

Encodes the specified byte to this output stream.

Parameters
c The byte.
Throws
IOException if an I/O error occurs.