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.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
write(byte[] b) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
flush
@Deprecated public SocketOutputStream(Socket socket) throws IOException
SocketChannelStream.out(Socket)
IOException
public void write(int b) throws IOException
write
in class FilterOutputStream
IOException
public void write(@NonNull byte[] b) throws IOException
write
in class FilterOutputStream
IOException
public void write(@NonNull 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 © 2004–2022. All rights reserved.