|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjist.swans.app.io.OutputStream
jist.swans.trans.TcpOutputStream
public class TcpOutputStream
SWANS Implementation of OutputStream for Socket.
| Constructor Summary | |
|---|---|
TcpOutputStream(SocketInterface.TcpSocketInterface entity)
Constructor. |
|
| Method Summary | |
|---|---|
void |
close()
Closes this output stream and releases any system resources associated with this stream. |
void |
write(byte[] b)
Writes b.length bytes from the specified byte array to this output stream. |
void |
write(byte[] b,
int off,
int len)
Writes len bytes from the specified byte array starting at offset off to this output stream. |
void |
write(int b)
Writes the specified byte to this output stream. |
| Methods inherited from class jist.swans.app.io.OutputStream |
|---|
flush |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TcpOutputStream(SocketInterface.TcpSocketInterface entity)
entity - entity reference to Socket| Method Detail |
|---|
public void close()
throws java.io.IOException
close in class OutputStreamjava.io.IOException - if an I/O error occursOutputStream
public void write(byte[] b)
throws java.io.IOException
write in class OutputStreamb - the data
java.io.IOException - if an I/O error occursOutputStream
public void write(byte[] b,
int off,
int len)
throws java.io.IOException
write in class OutputStreamb - the dataoff - the start offset in the datalen - the number of bytes to write
java.io.IOException - if an I/O error occursOutputStream
public void write(int b)
throws java.io.IOException
write in class OutputStreamb - the byte
java.io.IOException - if an I/O error occurs. In particular,
an IOException may be thrown if the output stream has been closed.OutputStream
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||