Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Freenet.support
Class SplitOutputStream  view SplitOutputStream download SplitOutputStream.java

java.lang.Object
  extended byjava.io.OutputStream
      extended byFreenet.support.SplitOutputStream
All Implemented Interfaces:
Callback

public class SplitOutputStream
extends java.io.OutputStream
implements Callback


Field Summary
private  java.util.Vector outputs
           
 
Constructor Summary
SplitOutputStream()
           
 
Method Summary
 void addOutput(java.io.OutputStream out)
           
 void addOutput(java.io.OutputStream out, Callback cb)
           
 void callback()
          When callback is called, the connections have their respective callbacks called, and are then removed.
 void close()
          This method closes the stream.
 void write(int c)
          This method writes a single byte to the output stream.
 
Methods inherited from class java.io.OutputStream
flush, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

outputs

private java.util.Vector outputs
Constructor Detail

SplitOutputStream

public SplitOutputStream()
Method Detail

addOutput

public void addOutput(java.io.OutputStream out)

addOutput

public void addOutput(java.io.OutputStream out,
                      Callback cb)

write

public void write(int c)
Description copied from class: java.io.OutputStream
This method writes a single byte to the output stream. The byte written is the low eight bits of the int passed and a argument.

Subclasses must provide an implementation of this abstract method


close

public void close()
Description copied from class: java.io.OutputStream
This method closes the stream. Any internal or native resources associated with this stream are freed. Any subsequent attempt to access the stream might throw an exception.

This method in this class does nothing.


callback

public void callback()
When callback is called, the connections have their respective callbacks called, and are then removed.

Specified by:
callback in interface Callback