|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjcontrol.net.SocketOutputStream
public class SocketOutputStream
JControl Implementation of a SocketOutputStream
| Constructor Summary | |
|---|---|
protected |
SocketOutputStream(Socket socket)
Constructor should only be initiated by the socket-class |
| Method Summary | |
|---|---|
void |
close()
Closes this output stream and releases any system resources associated with this stream. |
protected void |
finalize()
Free internal data structures used by this socketoutputstream object. |
void |
flush()
not implemented for socket streams |
void |
write(byte[] b)
Writes b.length bytes from the specified byte array
to this output stream. |
void |
write(byte[] buffer,
int offset,
int length)
Writes length 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 java.lang.Object |
|---|
clone, equals, getClass, notifyAll, toString, wait |
| Constructor Detail |
|---|
protected SocketOutputStream(Socket socket)
socket - | Method Detail |
|---|
public void write(int b)
throws IOException
write in interface BasicOutputStreamb - - the byte.
IOException - - if an I/O error occurs. In particular, an IOException may be thrown if the output stream has been closed.
public void write(byte[] b)
throws IOException
BasicOutputStreamb.length bytes from the specified byte array
to this output stream. The general contract for write(b)
is that it should have exactly the same effect as the call
write(b, 0, b.length).
write in interface BasicOutputStreamb - the data.
IOException - if an I/O error occurs.write(byte b[], int offset, int length)
public void write(byte[] buffer,
int offset,
int length)
throws IOException
write in interface BasicOutputStreambuffer - - the data.offset - - the start offset in the data.lenght - - the number of bytes to write.
IOException - - if an I/O error occurs. In particular, an IOException is thrown if the output stream is closed.
public void close()
throws IOException
close in interface BasicOutputStreamIOException - - if an I/O error occurs.
public void flush()
throws IOException
flush in interface BasicOutputStreamIOException - if an I/O error occurs.protected void finalize()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||