public class SslTcpOutputStream extends TcpOutputStream implements FlushableCloseable
socket
. Uses SSLSocketFactory.getDefault()
to create the socket.outputLock
Constructor and 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.
|
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 © 2021 JBoss by Red Hat. All rights reserved.