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

Quick Search    Search Deep

Freenet.support
Class Splitter  view Splitter download Splitter.java

java.lang.Object
  extended byjava.io.OutputStream
      extended byFreenet.support.Splitter
All Implemented Interfaces:
java.lang.Runnable

public class Splitter
extends java.io.OutputStream
implements java.lang.Runnable


Field Summary
private  java.util.Vector outputs
           
(package private)  java.io.InputStream source
           
private  java.util.Vector writers
           
 
Constructor Summary
Splitter()
           
Splitter(java.io.InputStream in)
           
 
Method Summary
 void addoutput(java.io.OutputStream out)
           
 void addwriter(java.io.Writer w)
           
 void run()
          This method will be called by whoever wishes to run your class implementing Runnable.
 void split()
           
 void write(int c)
          This method writes a single byte to the output stream.
 
Methods inherited from class java.io.OutputStream
close, 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

writers

private java.util.Vector writers

source

java.io.InputStream source
Constructor Detail

Splitter

public Splitter()

Splitter

public Splitter(java.io.InputStream in)
Method Detail

split

public void split()

run

public void run()
Description copied from interface: java.lang.Runnable
This method will be called by whoever wishes to run your class implementing Runnable. Note that there are no restrictions on what you are allowed to do in the run method, except that you cannot throw a checked exception.

Specified by:
run in interface java.lang.Runnable

addoutput

public void addoutput(java.io.OutputStream out)

addwriter

public void addwriter(java.io.Writer w)

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