Class SslTcpOutputStream

    • Constructor Detail

      • SslTcpOutputStream

        public SslTcpOutputStream​(InetAddress address,
                                  int port)
                           throws IOException
        Creates a SSL TCP output stream.

        Uses the default socket factory to create the socket.

        Parameters:
        address - the address to connect to
        port - 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 the default socket factory to create the socket.

        Parameters:
        socketFactory - the factory used to create the socket
        address - the address to connect to
        port - 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 the default socket factory to create the socket.

        Parameters:
        address - the address to connect to
        port - the port to connect to
        blockOnReconnect - true to block when attempting to reconnect the socket or false to 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 the default socket factory to create the socket.

        Parameters:
        socketFactory - the factory used to create the socket
        address - the address to connect to
        port - the port to connect to
        blockOnReconnect - true to block when attempting to reconnect the socket or false to reconnect asynchronously
        Throws:
        IOException - if an I/O error occurs when creating the socket