Stellent
HowToComponents
JavaDoc

intradoc.common
Class ForkedOutputStream

java.lang.Object
  |
  +--java.io.OutputStream
        |
        +--intradoc.common.ForkedOutputStream

public class ForkedOutputStream
extends java.io.OutputStream

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


Field Summary
protected  java.io.OutputStream[] m_streams
          An array of output streams that are written to.
 
Constructor Summary
protected ForkedOutputStream()
          Creates a new ForkedOutputStream.
  ForkedOutputStream(java.io.OutputStream[] streams)
          Creates a new ForkedOutputStream with the array of additional output streams.
 
Method Summary
 void write(byte[] b, int off, int len)
          Writes len bytes from the specified byte array, starting at offset off, to the array of output streams in m_streams.
 void write(int b)
          Writes the specified byte to the array of output streams in m_streams.
 
Methods inherited from class java.io.OutputStream
close, flush, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_streams

protected java.io.OutputStream[] m_streams
An array of output streams that are written to.

Constructor Detail

ForkedOutputStream

protected ForkedOutputStream()
Creates a new ForkedOutputStream.


ForkedOutputStream

public ForkedOutputStream(java.io.OutputStream[] streams)
Creates a new ForkedOutputStream with the array of additional output streams.

Method Detail

write

public void write(int b)
           throws java.io.IOException
Writes the specified byte to the array of output streams in m_streams.

Specified by:
write in class java.io.OutputStream
Parameters:
b - the byte to be written.
java.io.IOException

write

public void write(byte[] b,
                  int off,
                  int len)
           throws java.io.IOException
Writes len bytes from the specified byte array, starting at offset off, to the array of output streams in m_streams.

Overrides:
write in class java.io.OutputStream
Parameters:
b - the data.
off - the start offset in the data.
len - the number of bytes to write.
java.io.IOException


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