|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectjava.io.OutputStream
java.io.FilterOutputStream
com.sun.mail.util.QPEncoderStream
public class QPEncoderStream
This class implements a Quoted Printable Encoder. It is implemented as a FilterOutputStream, so one can just wrap this class around any output stream and write bytes into this filter. The Encoding is done as the bytes are written out.
| 字段摘要 |
|---|
| 从类 java.io.FilterOutputStream 继承的字段 |
|---|
out |
| 构造方法摘要 | |
|---|---|
QPEncoderStream(OutputStream out)
Create a QP encoder that encodes the specified input stream. |
|
QPEncoderStream(OutputStream out,
int bytesPerLine)
Create a QP encoder that encodes the specified input stream |
|
| 方法摘要 | |
|---|---|
void |
close()
Forces any buffered output bytes to be encoded out to the stream and closes this output stream |
void |
flush()
Flushes this output stream and forces any buffered output bytes to be encoded out to the stream. |
protected void |
output(int c,
boolean encode)
|
void |
write(byte[] b)
Encodes b.length bytes to this output stream. |
void |
write(byte[] b,
int off,
int len)
Encodes len bytes from the specified
byte array starting at offset off to
this output stream. |
void |
write(int c)
Encodes the specified byte to this output stream. |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 构造方法详细信息 |
|---|
public QPEncoderStream(OutputStream out,
int bytesPerLine)
out - the output streambytesPerLine - the number of bytes per line. The encoder
inserts a CRLF sequence after this many number
of bytes.public QPEncoderStream(OutputStream out)
out - the output stream| 方法详细信息 |
|---|
public void write(byte[] b,
int off,
int len)
throws IOException
len bytes from the specified
byte array starting at offset off to
this output stream.
FilterOutputStream 中的 writeb - the data.off - the start offset in the data.len - the number of bytes to write.
IOException - if an I/O error occurs.
public void write(byte[] b)
throws IOException
b.length bytes to this output stream.
FilterOutputStream 中的 writeb - the data to be written.
IOException - if an I/O error occurs.
public void write(int c)
throws IOException
byte to this output stream.
FilterOutputStream 中的 writec - the byte.
IOException - if an I/O error occurs.
public void flush()
throws IOException
Flushable 中的 flushFilterOutputStream 中的 flushIOException - if an I/O error occurs.
public void close()
throws IOException
Closeable 中的 closeFilterOutputStream 中的 closeIOException
protected void output(int c,
boolean encode)
throws IOException
IOException
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||