Collaboration diagram for OutputStream:
Private Methods | |
public | OutputStream (Connection c) |
private void | setupBuffer () |
public void | resetBuffer () |
public | OutputStream (java.io.OutputStream o) |
private void | write (int ch) |
private void | open () throws MPSException |
public void | writeint (int i) |
public void | writestring (String s) |
public void | writebool (boolean b) |
public void | writelong (long i) |
public void | writechar (char ch) |
public void | writeReference (Object o) throws MPSException |
public void | writefloat (float f) throws MPSException |
public void | flush () throws MPSException |
Private Attributes | |
private Connection | connection |
private java io OutputStream | output |
private StringBuffer | buffer |
Uses a Connection object to talk to the other end.
Definition at line 48 of file OutputStream.java.
|
Construct an OutputStream which encodes the bits going to a Connection object.
Definition at line 59 of file OutputStream.java. |
|
Construct an OutputStream which sends bits to an arbitrary inputstream.
Definition at line 84 of file OutputStream.java. |
|
Sends the total accumulated buffer of bytes over the connection. Empties the buffer ready for the next batch of bytes.
Definition at line 235 of file OutputStream.java. |
|
Causes the connection to the server to open, if it isn't already open.
Definition at line 117 of file OutputStream.java. Referenced by flush(). |
|
Resets our internal buffer to empty.
Definition at line 74 of file OutputStream.java. Referenced by Server::Runnable::run(). |
|
Creates and initialises a fresh StringBuffer in member variable buffer.
Definition at line 68 of file OutputStream.java. Referenced by OutputStream(), flush(), and resetBuffer(). |
|
Buffer up a single byte to send. The buffer is not flushed to the server until the flush() method is called.
Definition at line 97 of file OutputStream.java. Referenced by flush(), writebool(), writechar(), writeint(), writelong(), and writestring(). |
|
Writes a reference to an MPS object to the remote end. Sends a canonical name for the object as a string. The remote end will then construct a proxy on the other side of the connection to make use of the reference that has been sent to it.
Definition at line 198 of file OutputStream.java. |
|
Writes a single boolean to the server.
Definition at line 154 of file OutputStream.java. |
|
Writes a single char to the server.
Definition at line 179 of file OutputStream.java. |
|
Writes a single float to the server.
Definition at line 224 of file OutputStream.java. |
|
Writes a single int to the server.
Definition at line 127 of file OutputStream.java. Referenced by Proxy::getOutputStream(), Server::Runnable::run(), and writefloat(). |
|
Writes a single long to the server.
Definition at line 163 of file OutputStream.java. |
|
Writes a single java.lang.String to the server.
Definition at line 139 of file OutputStream.java. Referenced by writeReference(). |
|
Definition at line 51 of file OutputStream.java. |
|
Definition at line 49 of file OutputStream.java. |
|
Definition at line 50 of file OutputStream.java. |