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

Quick Search    Search Deep

Freenet.support
Class Funnel  view Funnel download Funnel.java

java.lang.Object
  extended byjava.io.InputStream
      extended byFreenet.support.Funnel
All Implemented Interfaces:
java.io.Closeable

public class Funnel
extends java.io.InputStream


Field Summary
(package private)  java.io.OutputStream dest
           
private  java.util.Vector inputs
           
 
Constructor Summary
Funnel()
           
Funnel(java.io.OutputStream out)
           
 
Method Summary
 void addinput(java.io.InputStream in)
           
 void addreader(java.io.Reader r)
           
 void funnel()
           
 int read()
          This method reads an unsigned byte from the input stream and returns it as an int in the range of 0-255.
 
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, read, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

inputs

private java.util.Vector inputs

dest

java.io.OutputStream dest
Constructor Detail

Funnel

public Funnel()

Funnel

public Funnel(java.io.OutputStream out)
Method Detail

funnel

public void funnel()

addinput

public void addinput(java.io.InputStream in)

addreader

public void addreader(java.io.Reader r)

read

public int read()
Description copied from class: java.io.InputStream
This method reads an unsigned byte from the input stream and returns it as an int in the range of 0-255. This method also will return -1 if the end of the stream has been reached.

This method will block until the byte can be read.