|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.io.OutputStream
|
+--org.w3c.www.mux.MuxOutputStream
| Field Summary | |
protected int |
avail_credit
The currently available credit. |
protected boolean |
closed
Has this stream been closed ? |
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 org.w3c.www.mux.MuxWriter |
writer
The writer instance for the multiplexed stream. |
| Constructor Summary | |
protected |
MuxOutputStream(MuxSession session)
|
| Method Summary | |
void |
close()
Close that session output stream. |
void |
flush()
Flush that output stream, blocking all data has been sent. |
protected void |
notifyControl(int control)
Callback notifying the the frgament size has changed. |
protected void |
notifyCredit(int credit)
Callback notifying that more credit is available for that stream. |
void |
write(byte[] b,
int off,
int len)
Writes a sub array of bytes. |
void |
write(int b)
Writes a byte. |
| Methods inherited from class java.io.OutputStream |
write |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Field Detail |
protected static final boolean debug
protected MuxSession session
protected int sessid
protected org.w3c.www.mux.MuxWriter writer
protected int fragsz
protected int avail_credit
protected boolean closed
| Constructor Detail |
protected MuxOutputStream(MuxSession session)
| Method Detail |
protected void notifyCredit(int credit)
credit - The credit we are getting from our peer.protected void notifyControl(int control)
control - The new fragment size.
public void write(int b)
throws java.io.IOException
b - the byte
public void write(byte[] b,
int off,
int len)
throws java.io.IOException
b - the data to be writtenoff - the start offset in the datalen - the number of bytes that are written
public void flush()
throws java.io.IOException
public void close()
throws java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||