Closeable
, Flushable
, AutoCloseable
, FlushableCloseable
public class SslTcpOutputStream extends TcpOutputStream implements FlushableCloseable
socket
. Uses SSLSocketFactory.getDefault()
to create the socket.outputLock
Constructor | Description |
---|---|
SslTcpOutputStream(InetAddress address,
int port) |
Creates a SSL TCP output stream.
|
SslTcpOutputStream(InetAddress address,
int port,
boolean blockOnReconnect) |
Creates a SSL TCP output stream.
|
SslTcpOutputStream(SocketFactory socketFactory,
InetAddress address,
int port) |
Creates a SSL TCP output stream.
|
SslTcpOutputStream(SocketFactory socketFactory,
InetAddress address,
int port,
boolean blockOnReconnect) |
Creates a SSL TCP output stream.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, flush, getErrors, isBlockOnReconnect, isConnected, setBlockOnReconnect, write, write, write
public SslTcpOutputStream(InetAddress address, int port) throws IOException
default socket factory
to create the socket.address
- the address to connect toport
- the port to connect toIOException
- if an I/O error occurs when creating the socketpublic SslTcpOutputStream(SocketFactory socketFactory, InetAddress address, int port) throws 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 toIOException
- if an I/O error occurs when creating the socketpublic SslTcpOutputStream(InetAddress address, int port, boolean blockOnReconnect) throws 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 asynchronouslyIOException
- if an I/O error occurs when creating the socketpublic SslTcpOutputStream(SocketFactory socketFactory, InetAddress address, int port, boolean blockOnReconnect) throws 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 asynchronouslyIOException
- if an I/O error occurs when creating the socketCopyright © 2018. All rights reserved.