public class ActiveSocketOutputStream
extends java.io.OutputStream
OutputStream that connects to a remote server and sends all data to that server. If the connection
cannot be established or breaks, the data is silently discarded, but reconnection attempts are made every now and
then.| Constructor and Description |
|---|
ActiveSocketOutputStream(java.net.InetAddress addr,
int port) |
ActiveSocketOutputStream(java.net.InetSocketAddress remoteAddress) |
ActiveSocketOutputStream(java.net.InetSocketAddress remoteAddress,
java.net.InetSocketAddress localAddress) |
ActiveSocketOutputStream(java.lang.String hostname,
int port) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
public ActiveSocketOutputStream(@NotNull java.net.InetAddress addr, int port)
public ActiveSocketOutputStream(@NotNull java.lang.String hostname, int port)
public ActiveSocketOutputStream(@NotNull java.net.InetSocketAddress remoteAddress)
public void write(int b)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void write(byte[] b,
int off,
int len)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.OutputStreamjava.io.IOException