|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectjava.io.InputStream
java.io.FilterInputStream
com.sun.mail.util.TraceInputStream
public class TraceInputStream
This class is a FilterInputStream that writes the bytes being read from the given input stream into the given output stream. This class is typically used to provide a trace of the data that is being retrieved from an input stream.
| 字段摘要 |
|---|
| 从类 java.io.FilterInputStream 继承的字段 |
|---|
in |
| 构造方法摘要 | |
|---|---|
TraceInputStream(InputStream in,
OutputStream traceOut)
Creates an input stream filter built on top of the specified input stream. |
|
| 方法摘要 | |
|---|---|
int |
read()
Reads the next byte of data from this input stream. |
int |
read(byte[] b,
int off,
int len)
Reads up to len bytes of data from this input stream
into an array of bytes. |
void |
setQuote(boolean quote)
Set quote mode. |
void |
setTrace(boolean trace)
Set trace mode. |
| 从类 java.io.FilterInputStream 继承的方法 |
|---|
available, close, mark, markSupported, read, reset, skip |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 构造方法详细信息 |
|---|
public TraceInputStream(InputStream in,
OutputStream traceOut)
in - the underlying input stream.out - the trace stream| 方法详细信息 |
|---|
public void setTrace(boolean trace)
trace - the trace modepublic void setQuote(boolean quote)
quote - the quote mode
public int read()
throws IOException
-1 if no data is available. Writes out the read
byte into the trace stream, if trace mode is true
FilterInputStream 中的 readIOException
public int read(byte[] b,
int off,
int len)
throws IOException
len bytes of data from this input stream
into an array of bytes. Returns -1 if no more data
is available. Writes out the read bytes into the trace stream, if
trace mode is true
FilterInputStream 中的 readIOException
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||