Package org.jboss.logmanager.handlers
Class SslTcpOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- org.jboss.logmanager.handlers.TcpOutputStream
-
- org.jboss.logmanager.handlers.SslTcpOutputStream
-
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
public class SslTcpOutputStream extends TcpOutputStream implements AutoCloseable, Flushable
An output stream that writes data to asocket. UsesSSLSocketFactory.getDefault()to create the socket.- Author:
- James R. Perkins
-
-
Field Summary
-
Fields inherited from class org.jboss.logmanager.handlers.TcpOutputStream
outputLock
-
-
Constructor Summary
Constructors 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.
-
Method Summary
-
Methods inherited from class org.jboss.logmanager.handlers.TcpOutputStream
close, flush, getErrors, isBlockOnReconnect, isConnected, setBlockOnReconnect, write, write, write
-
Methods inherited from class java.io.OutputStream
nullOutputStream
-
-
-
-
Constructor Detail
-
SslTcpOutputStream
public SslTcpOutputStream(InetAddress address, int port) throws IOException
Creates a SSL TCP output stream. Uses thedefault socket factoryto create the socket.- Parameters:
address- the address to connect toport- the port to connect to- Throws:
IOException- if an I/O error occurs when creating the socket
-
SslTcpOutputStream
public SslTcpOutputStream(SocketFactory socketFactory, InetAddress address, int port) throws IOException
Creates a SSL TCP output stream. Uses thedefault socket factoryto create the socket.- Parameters:
socketFactory- the factory used to create the socketaddress- the address to connect toport- the port to connect to- Throws:
IOException- if an I/O error occurs when creating the socket
-
SslTcpOutputStream
public SslTcpOutputStream(InetAddress address, int port, boolean blockOnReconnect) throws IOException
Creates a SSL TCP output stream. Uses thedefault socket factoryto create the socket.- Parameters:
address- the address to connect toport- the port to connect toblockOnReconnect-trueto block when attempting to reconnect the socket orfalseto reconnect asynchronously- Throws:
IOException- if an I/O error occurs when creating the socket
-
SslTcpOutputStream
public SslTcpOutputStream(SocketFactory socketFactory, InetAddress address, int port, boolean blockOnReconnect) throws IOException
Creates a SSL TCP output stream. Uses thedefault socket factoryto create the socket.- Parameters:
socketFactory- the factory used to create the socketaddress- the address to connect toport- the port to connect toblockOnReconnect-trueto block when attempting to reconnect the socket orfalseto reconnect asynchronously- Throws:
IOException- if an I/O error occurs when creating the socket
-
-