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
IOException
public void write(int b) throws IOException
write
in class FilterOutputStream
IOException
public void write(byte[] b) throws IOException
write
in class FilterOutputStream
IOException
public void write(byte[] b, int off, int len) throws IOException
write
in class FilterOutputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class FilterOutputStream
IOException
Copyright © 2013. All rights reserved.