All Packages Class Hierarchy This Package Previous Next Index
Class ncsa.habanero.streams.SplitterMOStr
java.lang.Object
|
+----java.io.OutputStream
|
+----ncsa.habanero.streams.FilterMOStr
|
+----ncsa.habanero.streams.SplitterMOStr
- public class SplitterMOStr
- extends FilterMOStr
- implements SplitterMStr
SplitterMOStr
This output stream splits a marshall output stream into two streams
-
SplitterMOStr(MarshallOutput)
-
-
SplitterMOStr(MarshallOutput, String)
-
-
addDestination(MarshallOutput)
-
-
close()
-
-
flush()
-
-
queryTag()
-
-
remove(MarshallOutput)
-
-
startReplacingSpecifiables()
-
-
stopReplacingSpecifiables()
-
-
write(byte[])
- Writes a sub array of bytes.
-
write(byte[], int, int)
- Writes a sub array of bytes.
-
write(int)
- Writes a byte.
-
writeBoolean(boolean)
- Writes a boolean.
-
writeByte(int)
- Writes an 8 bit byte.
-
writeBytes(String)
- Writes a String as a sequence of bytes.
-
writeChar(int)
- Writes a 16 bit char.
-
writeChars(String)
- Writes a String as a sequence of chars.
-
writeDouble(double)
- Writes a 64 bit double.
-
writeFloat(float)
- Writes a 32 bit float.
-
writeInt(int)
- Writes a 32 bit int.
-
writeLong(long)
- Writes a 64 bit long.
-
writeObject(Object)
- Write any information needed by the receiving object to recreate
my state.
-
writeShort(int)
- Writes a 16 bit short.
-
writeUTF(String)
- Writes a String in UTF format.
SplitterMOStr
public SplitterMOStr(MarshallOutput initOut)
- Parameters:
- initOut - the initializing output stream
- Returns:
- creates a MarshallOutputStream
SplitterMOStr
public SplitterMOStr(MarshallOutput initOut,
String strInit)
- Parameters:
- initOut - the initializing output stream
- strInit - the initial tag
- Returns:
- creates a MarshallOutputStream
addDestination
public void addDestination(MarshallOutput 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(MarshallOutput 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 FilterMOStr
close
public void close() throws IOException
- Returns:
- closes all the output streams
- Overrides:
- close in class FilterMOStr
writeObject
public void writeObject(Object obj) throws IOException
- Write any information needed by the receiving object to recreate
my state.
- Parameters:
- toSend - the object to send
- Returns:
- writes the object toSend to the output stream
- Throws: IOException
- when it cannot write the object
- Overrides:
- writeObject in class FilterMOStr
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 FilterMOStr
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 FilterMOStr
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 FilterMOStr
writeBoolean
public void writeBoolean(boolean v) throws IOException
- Writes a boolean.
- Parameters:
- v - the boolean to be written
- Overrides:
- writeBoolean in class FilterMOStr
writeByte
public void writeByte(int v) throws IOException
- Writes an 8 bit byte.
- Parameters:
- v - the byte value to be written
- Overrides:
- writeByte in class FilterMOStr
writeShort
public void writeShort(int v) throws IOException
- Writes a 16 bit short.
- Parameters:
- v - the short value to be written
- Overrides:
- writeShort in class FilterMOStr
writeChar
public void writeChar(int v) throws IOException
- Writes a 16 bit char.
- Parameters:
- v - the char value to be written
- Overrides:
- writeChar in class FilterMOStr
writeInt
public void writeInt(int v) throws IOException
- Writes a 32 bit int.
- Parameters:
- v - the integer value to be written
- Overrides:
- writeInt in class FilterMOStr
writeLong
public void writeLong(long v) throws IOException
- Writes a 64 bit long.
- Parameters:
- v - the long value to be written
- Overrides:
- writeLong in class FilterMOStr
writeFloat
public void writeFloat(float v) throws IOException
- Writes a 32 bit float.
- Parameters:
- v - the float value to be written
- Overrides:
- writeFloat in class FilterMOStr
writeDouble
public void writeDouble(double v) throws IOException
- Writes a 64 bit double.
- Parameters:
- v - the double value to be written
- Overrides:
- writeDouble in class FilterMOStr
writeBytes
public void writeBytes(String s) throws IOException
- Writes a String as a sequence of bytes.
- Parameters:
- s - the String of bytes to be written
- Overrides:
- writeBytes in class FilterMOStr
writeChars
public void writeChars(String s) throws IOException
- Writes a String as a sequence of chars.
- Parameters:
- s - the String of chars to be written
- Overrides:
- writeChars in class FilterMOStr
writeUTF
public void writeUTF(String str) throws IOException
- Writes a String in UTF format.
- Parameters:
- str - the String in UTF format
- Overrides:
- writeUTF in class FilterMOStr
stopReplacingSpecifiables
public void stopReplacingSpecifiables()
- Overrides:
- stopReplacingSpecifiables in class FilterMOStr
startReplacingSpecifiables
public void startReplacingSpecifiables()
- Overrides:
- startReplacingSpecifiables in class FilterMOStr
All Packages Class Hierarchy This Package Previous Next Index