java.io.Closeable, java.io.Flushable, java.lang.AutoCloseable, FlushableCloseablepublic class SslTcpOutputStream extends TcpOutputStream implements FlushableCloseable
socket. Uses SSLSocketFactory.getDefault() to create the socket.outputLock| Constructor | Description |
|---|---|
SslTcpOutputStream(java.net.InetAddress address,
int port) |
Creates a SSL TCP output stream.
|
SslTcpOutputStream(java.net.InetAddress address,
int port,
boolean blockOnReconnect) |
Creates a SSL TCP output stream.
|
SslTcpOutputStream(javax.net.SocketFactory socketFactory,
java.net.InetAddress address,
int port) |
Creates a SSL TCP output stream.
|
SslTcpOutputStream(javax.net.SocketFactory socketFactory,
java.net.InetAddress address,
int port,
boolean blockOnReconnect) |
Creates a SSL TCP output stream.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, flush, getErrors, isBlockOnReconnect, isConnected, setBlockOnReconnect, write, write, writepublic SslTcpOutputStream(java.net.InetAddress address,
int port)
throws java.io.IOException
default socket factory to create the socket.address - the address to connect toport - the port to connect tojava.io.IOException - if an I/O error occurs when creating the socketpublic SslTcpOutputStream(javax.net.SocketFactory socketFactory,
java.net.InetAddress address,
int port)
throws java.io.IOException
default socket factory to create the socket.socketFactory - the factory used to create the socketaddress - the address to connect toport - the port to connect tojava.io.IOException - if an I/O error occurs when creating the socketpublic SslTcpOutputStream(java.net.InetAddress address,
int port,
boolean blockOnReconnect)
throws java.io.IOException
default socket factory to create the socket.address - the address to connect toport - the port to connect toblockOnReconnect - true to block when attempting to reconnect the socket or false to
reconnect asynchronouslyjava.io.IOException - if an I/O error occurs when creating the socketpublic SslTcpOutputStream(javax.net.SocketFactory socketFactory,
java.net.InetAddress address,
int port,
boolean blockOnReconnect)
throws java.io.IOException
default socket factory to create the socket.socketFactory - the factory used to create the socketaddress - the address to connect toport - the port to connect toblockOnReconnect - true to block when attempting to reconnect the socket or false to
reconnect asynchronouslyjava.io.IOException - if an I/O error occurs when creating the socketCopyright © 2018. All rights reserved.