All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class ncsa.habanero.streams.SplitterOutStr

java.lang.Object
   |
   +----java.io.OutputStream
           |
           +----java.io.FilterOutputStream
                   |
                   +----ncsa.habanero.streams.SplitterOutStr

public class SplitterOutStr
extends FilterOutputStream
implements SplitterStr
SplitterOutStr This output stream splits a marshall output stream into two streams


Constructor Index

 o SplitterOutStr(OutputStream)
 o SplitterOutStr(OutputStream, String)

Method Index

 o addDestination(OutputStream)
 o close()
 o flush()
 o queryTag()
 o remove(OutputStream)
 o write(byte[])
Writes a sub array of bytes.
 o write(byte[], int, int)
Writes a sub array of bytes.
 o write(int)
Writes a byte.

Constructors

 o SplitterOutStr
 public SplitterOutStr(OutputStream initOut)
Parameters:
initOut - the initializing output stream
Returns:
creates a OutputStreamStream
 o SplitterOutStr
 public SplitterOutStr(OutputStream initOut,
                       String strInit)
Parameters:
initOut - the initializing output stream
strInit - the initial tag
Returns:
creates a OutputStreamStream

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 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 flush
 public void flush() throws IOException
Returns:
flushes all the output streams
Overrides:
flush in class FilterOutputStream
 o close
 public void close() throws IOException
Returns:
closes all the output streams
Overrides:
close in class FilterOutputStream
 o write
 public void write(int b) throws IOException
Writes a byte. Will block until the byte is actually written.

Parameters:
b - the byte to be written
Throws: IOException
If an I/O error has occurred.
Overrides:
write in class FilterOutputStream
 o write
 public void write(byte b[]) throws IOException
Writes a sub array of bytes.

Parameters:
b - the data to be written
Throws: IOException
If an I/O error has occurred.
Overrides:
write in class FilterOutputStream
 o write
 public void write(byte b[],
                   int off,
                   int len) throws IOException
Writes a sub array of bytes.

Parameters:
b - the data to be written
off - the start offset in the data
len - the number of bytes that are written
Throws: IOException
If an I/O error has occurred.
Overrides:
write in class FilterOutputStream

All Packages  Class Hierarchy  This Package  Previous  Next  Index