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 TraceOutputStream

com.sun.mail.util.TraceOutputStream

public class TraceOutputStream
extends FilterOutputStream

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.


Constructor Summary

          Creates an output stream filter built on top of the specified underlying output stream.
 
Method Summary
 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.
 

Constructor Detail

TraceOutputStream

public TraceOutputStream(OutputStream out,
                         OutputStream traceOut)
Creates an output stream filter built on top of the specified underlying output stream.

Parameters:
out - the underlying output stream.
traceOut - the trace stream.
Method Detail

setQuote

public void setQuote(boolean quote)
Set quote mode.

Parameters:
quote - the quote mode

setTrace

public void setTrace(boolean trace)
Set the trace mode.

Parameters:
trace

write

public void write(byte[] b,
                  int off,
                  int len)
           throws IOException
Writes b.length bytes to this output stream. Writes out the bytes into the trace stream if the trace mode is true

Overrides:
write in class FilterOutputStream
Parameters:
b
off
len
Throws:
IOException

write

public void write(int b)
           throws IOException
Writes the specified byte to this output stream. Writes out the byte into the trace stream if the trace mode is true

Overrides:
write in class FilterOutputStream
Parameters:
b
Throws:
IOException


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.