|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectjava.io.OutputStream
java.io.FilterOutputStream
com.sun.mail.util.TraceOutputStream
public class TraceOutputStream
This class is a subclass of DataOutputStream that copies the data being written into the DataOutputStream into another output stream. This class is used here to provide a debug trace of the stuff thats being written out into the DataOutputStream.
| 字段摘要 |
|---|
| 从类 java.io.FilterOutputStream 继承的字段 |
|---|
out |
| 构造方法摘要 | |
|---|---|
TraceOutputStream(OutputStream out,
OutputStream traceOut)
Creates an output stream filter built on top of the specified underlying output stream. |
|
| 方法摘要 | |
|---|---|
void |
setQuote(boolean quote)
Set quote mode. |
void |
setTrace(boolean trace)
Set the trace mode. |
void |
write(byte[] b,
int off,
int len)
Writes b.length bytes to this output stream. |
void |
write(int b)
Writes the specified byte to this output stream. |
| 从类 java.io.FilterOutputStream 继承的方法 |
|---|
close, flush, write |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 构造方法详细信息 |
|---|
public TraceOutputStream(OutputStream out,
OutputStream traceOut)
out - the underlying output stream.traceOut - the trace stream.| 方法详细信息 |
|---|
public void setTrace(boolean trace)
public void setQuote(boolean quote)
quote - the quote mode
public void write(int b)
throws IOException
byte to this output stream.
Writes out the byte into the trace stream if the trace mode
is true
FilterOutputStream 中的 writeIOException
public void write(byte[] b,
int off,
int len)
throws IOException
b.length bytes to this output stream.
Writes out the bytes into the trace stream if the trace
mode is true
FilterOutputStream 中的 writeIOException
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||