Stellent
HowToComponents
JavaDoc

intradoc.common
Class TracedInputStream

java.lang.Object
  |
  +--java.io.InputStream
        |
        +--intradoc.common.TracedInputStream

public class TracedInputStream
extends java.io.InputStream

Specialized output stream used to send output stream data to two places with one write command


Field Summary
protected  java.io.InputStream m_inStream
          The input stream that is read
protected  java.io.OutputStream m_traceStream
          The output stream to trace the reading to
 
Constructor Summary
protected TracedInputStream()
          Creates a new ForkedOutputStream.
  TracedInputStream(java.io.InputStream in, java.io.OutputStream trace)
          Creates a new ForkedOutputStream with the array of additional output streams.
 
Method Summary
 int read()
          Read the specified byte from the input stream, and write it to the trace stream
 int read(byte[] arg)
          Read into the byte array, and trace it
 int read(byte[] arg, int offset, int len)
          Read into the byte array, and trace it
 
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_traceStream

protected java.io.OutputStream m_traceStream
The output stream to trace the reading to


m_inStream

protected java.io.InputStream m_inStream
The input stream that is read

Constructor Detail

TracedInputStream

protected TracedInputStream()
Creates a new ForkedOutputStream.


TracedInputStream

public TracedInputStream(java.io.InputStream in,
                         java.io.OutputStream trace)
Creates a new ForkedOutputStream with the array of additional output streams.

Method Detail

read

public int read()
         throws java.io.IOException
Read the specified byte from the input stream, and write it to the trace stream

Specified by:
read in class java.io.InputStream
java.io.IOException

read

public int read(byte[] arg)
         throws java.io.IOException
Read into the byte array, and trace it

Overrides:
read in class java.io.InputStream
java.io.IOException

read

public int read(byte[] arg,
                int offset,
                int len)
         throws java.io.IOException
Read into the byte array, and trace it

Overrides:
read in class java.io.InputStream
java.io.IOException


(c) 1996-2005  All rights reserved.  Stellent, Inc.