This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.


com.sun.mail.util
class QEncoderStream

com.sun.mail.util.QPEncoderStream extended by com.sun.mail.util.QEncoderStream

public class QEncoderStream
extends QPEncoderStream

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


Constructor Summary
QEncoderStream(OutputStream out, boolean encodingWord)

          Create a Q encoder that encodes the specified input stream
 
Method Summary
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.
 
Methods inherited from class com.sun.mail.util.QPEncoderStream
close, flush, output, write, write, write
 

Constructor Detail

QEncoderStream

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.
Method Detail

encodedLength

public static int encodedLength(byte[] b,
                                boolean encodingWord)
Returns the length of the encoded version of this byte array.

Parameters:
b
encodingWord

write

public void write(int c)
           throws IOException
Encodes the specified byte to this output stream.

Overrides:
write in class QPEncoderStream
Parameters:
c - the byte.
Throws:
IOException - if an I/O error occurs.


This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.
This page displays the Jadeite version of the documention. The official Sun™ documentation can be found here at http://java.sun.com/products/javamail/javadocs/index.html.