com.sun.mail.util
类 QEncoderStream

java.lang.Object
  继承者 java.io.OutputStream
      继承者 java.io.FilterOutputStream
          继承者 com.sun.mail.util.QPEncoderStream
              继承者 com.sun.mail.util.QEncoderStream
所有已实现的接口:
Closeable, Flushable

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.

作者:
John Mani

字段摘要
 
从类 java.io.FilterOutputStream 继承的字段
out
 
构造方法摘要
QEncoderStream(OutputStream out, boolean encodingWord)
          Create a Q encoder that encodes the specified input stream
 
方法摘要
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.
 
从类 com.sun.mail.util.QPEncoderStream 继承的方法
close, flush, output, write, write
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

QEncoderStream

public QEncoderStream(OutputStream out,
                      boolean encodingWord)
Create a Q encoder that encodes the specified input stream

参数:
out - the output stream
encodingWord - true if we are Q-encoding a word within a phrase.
方法详细信息

write

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

覆盖:
QPEncoderStream 中的 write
参数:
c - the byte.
抛出:
IOException - if an I/O error occurs.

encodedLength

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



Copyright © 2013. All Rights Reserved.