Class SocketConnection

  • All Implemented Interfaces:
    Connection

    public class SocketConnection
    extends java.lang.Object
    implements Connection
    • Field Detail

      • socket

        protected java.net.Socket socket
    • Constructor Detail

      • SocketConnection

        public SocketConnection​(java.net.Socket socket,
                                java.io.BufferedInputStream in,
                                java.io.OutputStream out)
    • Method Detail

      • getInputStream

        public java.io.BufferedInputStream getInputStream()
        Specified by:
        getInputStream in interface Connection
      • create

        public VSocket create​(int code)
                       throws java.io.IOException
        Specified by:
        create in interface Connection
        Throws:
        java.io.IOException
      • create

        public VSocket create​(VSocket stopped)
                       throws java.io.IOException
        Specified by:
        create in interface Connection
        Throws:
        java.io.IOException
      • close

        public void close()
        Specified by:
        close in interface Connection
      • upgradeToSSL

        public void upgradeToSSL​(javax.net.ssl.SSLSocketFactory sslSocketFactory)
                          throws java.io.IOException
        Specified by:
        upgradeToSSL in interface Connection
        Throws:
        java.io.IOException