|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--galaxy.io.GalaxyOutputStream
This class provides methods for writing data to a Galaxy Communicator connection.
Constructor Summary | |
GalaxyOutputStream(java.io.OutputStream out)
Constructor |
Method Summary | |
void |
close()
|
void |
write(BinaryObject binObj,
int msgType)
Deprecated. As of Galaxy Communicator 3.0. Use writeObject. |
void |
write(GFrame frame,
int msgType)
Deprecated. As of Galaxy Communicator 3.0. Use writeObject. |
void |
write(java.lang.String str,
int msgType)
Deprecated. As of Galaxy Communicator 3.0. Use writeObject. |
void |
writeEOT(DisconnectMessage msg)
Writes a disconnect message to the output stream. |
void |
writeFrame(GFrame frame,
int msgType)
Deprecated. As of Galaxy Communicator 3.0. Use writeObject. |
void |
writeMessage(GalaxyMessage msg)
Writes a message to the output stream. |
void |
writeObject(java.lang.Object obj,
int msgType)
Writes an object to the output stream. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public GalaxyOutputStream(java.io.OutputStream out) throws java.io.IOException
out
- the output stream to useMethod Detail |
public void close() throws java.io.IOException
public void write(GFrame frame, int msgType) throws java.io.IOException
public void write(java.lang.String str, int msgType) throws java.io.IOException
public void write(BinaryObject binObj, int msgType) throws java.io.IOException
public void writeFrame(GFrame frame, int msgType) throws java.io.IOException
public void writeMessage(GalaxyMessage msg) throws java.io.IOException
msg
- the messagejava.io.IOException
- If there is an error writing to the output streampublic void writeEOT(DisconnectMessage msg) throws java.io.IOException
msg
- the disconnect messagejava.io.IOException
- If there is an error writing to the output streampublic void writeObject(java.lang.Object obj, int msgType) throws java.io.IOException
obj
- the objectmsgType
- the message type (object is encapsulated in a message)java.io.IOException
- If there is an error writing to the output stream
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |