| java.io.FileOutputStream java.net.SocketOutputStream
SocketOutputStream | class SocketOutputStream extends FileOutputStream (Code) | | This stream extends FileOutputStream to implement a
SocketOutputStream. Note that this class should NOT be
public.
version: 1.17, 02/02/00 author: Jonathan Payne author: Arthur van Hoff |
Method Summary | |
public void | close() | protected void | finalize() Overrides finalize, the fd is closed by the Socket. | public void | write(int b) Writes a byte to the socket. | public void | write(byte b) Writes the contents of the buffer b to the socket.
Parameters: b - the data to be written exception: SocketException - If an I/O error has occurred. | public void | write(byte b, int off, int len) Writes length bytes from buffer b starting at
offset len. |
SocketOutputStream | SocketOutputStream(PlainSocketImpl impl) throws IOException(Code) | | Creates a new SocketOutputStream. Can only be called
by a Socket. This method needs to hang on to the owner Socket so
that the fd will not be closed.
Parameters: impl - the socket output stream inplemented |
finalize | protected void finalize()(Code) | | Overrides finalize, the fd is closed by the Socket.
|
write | public void write(int b) throws IOException(Code) | | Writes a byte to the socket.
Parameters: b - the data to be written exception: IOException - If an I/O error has occurred. |
write | public void write(byte b) throws IOException(Code) | | Writes the contents of the buffer b to the socket.
Parameters: b - the data to be written exception: SocketException - If an I/O error has occurred. |
write | public void write(byte b, int off, int len) throws IOException(Code) | | Writes length bytes from buffer b starting at
offset len.
Parameters: b - the data to be written Parameters: off - the start offset in the data Parameters: len - the number of bytes that are written exception: SocketException - If an I/O error has occurred. |
|
|