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
-
SplitterOutStr(OutputStream)
-
-
SplitterOutStr(OutputStream, String)
-
-
addDestination(OutputStream)
-
-
close()
-
-
flush()
-
-
queryTag()
-
-
remove(OutputStream)
-
-
write(byte[])
- Writes a sub array of bytes.
-
write(byte[], int, int)
- Writes a sub array of bytes.
-
write(int)
- Writes a byte.
SplitterOutStr
public SplitterOutStr(OutputStream initOut)
- Parameters:
- initOut - the initializing output stream
- Returns:
- creates a OutputStreamStream
SplitterOutStr
public SplitterOutStr(OutputStream initOut,
String strInit)
- Parameters:
- initOut - the initializing output stream
- strInit - the initial tag
- Returns:
- creates a OutputStreamStream
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
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
flush
public void flush() throws IOException
- Returns:
- flushes all the output streams
- Overrides:
- flush in class FilterOutputStream
close
public void close() throws IOException
- Returns:
- closes all the output streams
- Overrides:
- close in class FilterOutputStream
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
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
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