java.lang.Object
java.io.OutputStream
Freenet.support.SplitOutputStream
- All Implemented Interfaces:
- Callback
- public class SplitOutputStream
- extends java.io.OutputStream
- implements Callback
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
outputs
private java.util.Vector outputs
SplitOutputStream
public SplitOutputStream()
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