All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class ncsa.habanero.streams.SplitterInStr

java.lang.Object
   |
   +----java.io.InputStream
           |
           +----java.io.FilterInputStream
                   |
                   +----ncsa.habanero.streams.SplitterInStr

public class SplitterInStr
extends FilterInputStream
implements SplitterStr
SplitterInStr This input stream diverst the input stream to an output stream, in addition to acting as a filter


Constructor Index

 o SplitterInStr(InputStream)
 o SplitterInStr(InputStream, String)

Method Index

 o addDestination(OutputStream)
 o close()
 o flush()
 o queryTag()
 o read()
 o read(byte[])
 o read(byte[], int, int)
 o remove(OutputStream)

Constructors

 o SplitterInStr
 public SplitterInStr(InputStream initIn)
Parameters:
initIn - the initializing input stream
Returns:
creates a SplitterMIStr
 o SplitterInStr
 public SplitterInStr(InputStream initIn,
                      String strInit)
Parameters:
initIn - the initializing input stream
strInit - the tag for the object
Returns:
creates a SplitterMIStr

Methods

 o addDestination
 public void addDestination(OutputStream out)
Parameters:
out - a new output stream
Returns:
adds out to the list of output streams that we are transfering this input to
 o close
 public void close() throws IOException
Returns:
closes the streams
Overrides:
close in class FilterInputStream
 o flush
 public void flush()
Returns:
closes the streams
 o remove
 public void remove(OutputStream out)
Parameters:
out - an old output stream
Returns:
removes the old stream from the list of output streams that we are writing to
 o queryTag
 public String queryTag()
Returns:
a string which represents a tag to the object
 o read
 public int read() throws IOException
Returns:
reads a byte
Throws: IOException
is thrown if you are unable to read the byte
Overrides:
read in class FilterInputStream
 o read
 public int read(byte b[]) throws IOException
Parameters:
b - the data to be written
Returns:
reads a sub array of bytes.
Throws: IOException
If an I/O error has occurred.
Overrides:
read in class FilterInputStream
 o read
 public int read(byte b[],
                 int off,
                 int len) throws IOException
Parameters:
b - the data to be written
off - the start offset in the data
len - the number of bytes that are written
Returns:
Reads a sub array of bytes.
Throws: IOException
If an I/O error has occurred.
Overrides:
read in class FilterInputStream

All Packages  Class Hierarchy  This Package  Previous  Next  Index