| java.lang.Object java.io.OutputStream org.w3c.www.mux.MuxOutputStream
Field Summary | |
protected int | avail_credit The currently available credit. | protected boolean | closed | final protected static boolean | debug | protected int | fragsz The current max allowed fragment size. | protected int | sessid The identifier of above session (fast access). | protected MuxSession | session The session this stream is attached to. | protected MuxWriter | writer The writer instance for the multiplexed stream. |
Method Summary | |
public synchronized void | close() Close that session output stream. | public void | flush() Flush that output stream, blocking all data has been sent. | protected synchronized void | notifyControl(int control) Callback notifying the the frgament size has changed. | protected synchronized void | notifyCredit(int credit) Callback notifying that more credit is available for that stream. | public void | write(int b) Writes a byte. | public void | write(byte b, int off, int len) Writes a sub array of bytes. |
avail_credit | protected int avail_credit(Code) | | The currently available credit.
|
closed | protected boolean closed(Code) | | Has this stream been closed ?
|
debug | final protected static boolean debug(Code) | | |
fragsz | protected int fragsz(Code) | | The current max allowed fragment size.
|
sessid | protected int sessid(Code) | | The identifier of above session (fast access).
|
session | protected MuxSession session(Code) | | The session this stream is attached to.
|
writer | protected MuxWriter writer(Code) | | The writer instance for the multiplexed stream.
|
close | public synchronized void close() throws IOException(Code) | | Close that session output stream.
exception: IOException - If some IO errors occur. |
flush | public void flush() throws IOException(Code) | | Flush that output stream, blocking all data has been sent.
exception: IOException - If some IO errors occur. |
notifyControl | protected synchronized void notifyControl(int control)(Code) | | Callback notifying the the frgament size has changed.
Parameters: control - The new fragment size. |
notifyCredit | protected synchronized void notifyCredit(int credit)(Code) | | Callback notifying that more credit is available for that stream.
Parameters: credit - The credit we are getting from our peer. |
write | public void write(int b) throws IOException(Code) | | Writes a byte. This method will block until the byte is actually
written.
It is highly recomended that you use a buffered output
stream on top of that stream, or that you don't use that method.
Parameters: b - the byte exception: IOException - If an I/O error has occurred. |
write | public void write(byte b, int off, int len) throws IOException(Code) | | Writes a sub array of bytes.
Parameters: b - the data to be written Parameters: off - the start offset in the data Parameters: len - the number of bytes that are written exception: IOException - If an I/O error has occurred. |
|
|