|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.OutputStream
equip.runtime.MbufOutputStream
Concrete message buffer (Mbuf) output stream
| Field Summary | |
protected Mbuf |
current
|
protected Mbuf |
first
|
protected int |
mbufHeaderSize
|
protected int |
mbufSize
|
protected int |
pos
|
| Constructor Summary | |
MbufOutputStream()
initialise to create Mbufs with default size and no header |
|
MbufOutputStream(int mbufSize,
int mbufHeaderSize)
initialise to create Mbufs with given size and header |
|
| Method Summary | |
void |
flush()
OutputStream API |
Mbuf |
takeMbuf()
Return head of list of Mbufs that have been written into;
clears internal reference. |
void |
write(int bin)
OutputStream API |
int |
write2(byte[] cbuf,
int size)
internal implementation of write(int) |
| Methods inherited from class java.io.OutputStream |
close, write, write |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected int mbufSize
protected int mbufHeaderSize
protected Mbuf first
protected Mbuf current
protected int pos
| Constructor Detail |
public MbufOutputStream()
Mbufs with default size and no header
public MbufOutputStream(int mbufSize,
int mbufHeaderSize)
Mbufs with given size and header
| Method Detail |
public void write(int bin)
throws java.io.IOException
java.io.IOException
public int write2(byte[] cbuf,
int size)
write(int)
public void flush()
public Mbuf takeMbuf()
Mbufs that have been written into;
clears internal reference.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||