public class SocketOutputStream extends FilterOutputStream
InputStream connected to socket.
Unlike plain Socket.getOutputStream(), closing the stream
does not close the entire socket, and instead it merely partial-close
a socket in the direction.
out| Constructor and Description |
|---|
SocketOutputStream(Socket socket)
Deprecated.
|
public SocketOutputStream(Socket socket) throws IOException
SocketChannelStream.out(Socket)IOExceptionpublic void write(int b)
throws IOException
write in class FilterOutputStreamIOExceptionpublic void write(byte[] b)
throws IOException
write in class FilterOutputStreamIOExceptionpublic void write(byte[] b,
int off,
int len)
throws IOException
write in class FilterOutputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class FilterOutputStreamIOExceptionCopyright © 2004-2014. All Rights Reserved.