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
-
SplitterInStr(InputStream)
-
-
SplitterInStr(InputStream, String)
-
-
addDestination(OutputStream)
-
-
close()
-
-
flush()
-
-
queryTag()
-
-
read()
-
-
read(byte[])
-
-
read(byte[], int, int)
-
-
remove(OutputStream)
-
SplitterInStr
public SplitterInStr(InputStream initIn)
- Parameters:
- initIn - the initializing input stream
- Returns:
- creates a SplitterMIStr
SplitterInStr
public SplitterInStr(InputStream initIn,
String strInit)
- Parameters:
- initIn - the initializing input stream
- strInit - the tag for the object
- Returns:
- creates a SplitterMIStr
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
close
public void close() throws IOException
- Returns:
- closes the streams
- Overrides:
- close in class FilterInputStream
flush
public void flush()
- Returns:
- closes the streams
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
queryTag
public String queryTag()
- Returns:
- a string which represents a tag to the object
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
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
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