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) |
public SocketOutputStream(Socket socket) throws IOException
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 © 2015. All Rights Reserved.