Top Description Fields Constructors Methods
org.jboss.logmanager.handlers

public Class SslTcpOutputStream

extends TcpOutputStream
implements AutoCloseable, Flushable
Class Inheritance
All Implemented Interfaces
java.io.Flushable, java.lang.AutoCloseable
Annotations
@SuppressWarnings:unused, WeakerAccess
Imports
java.io.Flushable, .IOException, java.net.InetAddress, javax.net.SocketFactory, javax.net.ssl.SSLSocketFactory

An output stream that writes data to a socket. Uses SSLSocketFactory#getDefault() to create the socket.
Author
James R. Perkins

Field Summary

Inherited from org.jboss.logmanager.handlers.TcpOutputStream:
outputLock

Constructor Summary

AccessConstructor and Description
public
SslTcpOutputStream(final InetAddress
the address to connect to
address
,
final int
the port to connect to
port
)

Creates a SSL TCP output stream.

public
SslTcpOutputStream(final SocketFactory
the factory used to create the socket
socketFactory
,
final InetAddress
the address to connect to
address
,
final int
the port to connect to
port
)

Creates a SSL TCP output stream.

public
SslTcpOutputStream(final InetAddress
the address to connect to
address
,
final int
the port to connect to
port
,
final boolean
true to block when attempting to reconnect the socket or false to reconnect asynchronously
blockOnReconnect
)

Creates a SSL TCP output stream.

public
SslTcpOutputStream(final SocketFactory
the factory used to create the socket
socketFactory
,
final InetAddress
the address to connect to
address
,
final int
the port to connect to
port
,
final boolean
true to block when attempting to reconnect the socket or false to reconnect asynchronously
blockOnReconnect
)

Creates a SSL TCP output stream.

Method Summary

Inherited from org.jboss.logmanager.handlers.TcpOutputStream:
closeflushgetErrorsisBlockOnReconnectisConnectedsetBlockOnReconnectwritewritewrite

Constructor Detail

SslTcpOutputStreamback to summary
public SslTcpOutputStream(final InetAddress address, final int port) throws IOException

Creates a SSL TCP output stream.

Uses the default socket factory to create the socket.

Parameters
address:InetAddress

the address to connect to

port:int

the port to connect to

Exceptions
IOException:
if an I/O error occurs when creating the socket
SslTcpOutputStreamback to summary
public SslTcpOutputStream(final SocketFactory socketFactory, final InetAddress address, final int port) throws IOException

Creates a SSL TCP output stream.

Uses the default socket factory to create the socket.

Parameters
socketFactory:SocketFactory

the factory used to create the socket

address:InetAddress

the address to connect to

port:int

the port to connect to

Exceptions
IOException:
if an I/O error occurs when creating the socket
SslTcpOutputStreamback to summary
public SslTcpOutputStream(final InetAddress address, final int port, final boolean blockOnReconnect) throws IOException

Creates a SSL TCP output stream.

Uses the default socket factory to create the socket.

Parameters
address:InetAddress

the address to connect to

port:int

the port to connect to

blockOnReconnect:boolean

true to block when attempting to reconnect the socket or false to reconnect asynchronously

Exceptions
IOException:
if an I/O error occurs when creating the socket
SslTcpOutputStreamback to summary
public SslTcpOutputStream(final SocketFactory socketFactory, final InetAddress address, final int port, final boolean blockOnReconnect) throws IOException

Creates a SSL TCP output stream.

Uses the default socket factory to create the socket.

Parameters
socketFactory:SocketFactory

the factory used to create the socket

address:InetAddress

the address to connect to

port:int

the port to connect to

blockOnReconnect:boolean

true to block when attempting to reconnect the socket or false to reconnect asynchronously

Exceptions
IOException:
if an I/O error occurs when creating the socket