|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.io.OutputStream | +--org.ssonet.io.IOOutputStream
Provides the OutputStream interface to an IOStream.
Field Summary | |
protected byte[] |
buf
|
protected org.ssonet.io.IOStream |
ioStream
|
protected int |
len
|
protected int |
pos
|
protected boolean |
running
|
Constructor Summary | |
IOOutputStream(org.ssonet.io.IOStream ioStream)
Creates an IOInputStream on top of a IOStream. |
Method Summary | |
void |
close()
Closes the IOOutputStream. |
void |
flush()
Writes all data out. |
void |
write(byte[] b,
int o,
int l)
Writes a section of a byte-array. |
void |
write(int b)
Writes a single 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 org.ssonet.io.IOStream ioStream
protected int len
protected byte[] buf
protected int pos
protected boolean running
Constructor Detail |
public IOOutputStream(org.ssonet.io.IOStream ioStream)
ioStream
- the IOStream to write data toMethod Detail |
public void flush() throws java.io.IOException
flush
in class java.io.OutputStream
java.io.IOException
public void close() throws java.io.IOException
close
in class java.io.OutputStream
java.io.IOException
public void write(int b) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
OutputStream.write(int)
public void write(byte[] b, int o, int l) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
OutputStream.write(byte[], int, int)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |