public class TcpOutputStream extends OutputStream implements FlushableCloseable
socket. Uses SocketFactory.getDefault() to create the socket.| Modifier | Constructor and Description |
|---|---|
|
TcpOutputStream(InetAddress address,
int port) |
protected |
TcpOutputStream(Socket socket) |
public TcpOutputStream(InetAddress address, int port) throws IOException
IOExceptionprotected TcpOutputStream(Socket socket)
public void write(int b)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] b)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] b,
int off,
int len)
throws IOException
write in class OutputStreamIOExceptionpublic void flush()
throws IOException
flush in interface Flushableflush in class OutputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreamIOExceptionCopyright © 2013 JBoss by Red Hat. All Rights Reserved.