Class Socket4Decorator

  • All Implemented Interfaces:
    Socket4

    public class Socket4Decorator
    extends java.lang.Object
    implements Socket4
    Since:
    7.12
    • Field Detail

      • _socket

        protected Socket4 _socket
    • Constructor Detail

      • Socket4Decorator

        public Socket4Decorator​(Socket4 socket)
    • Method Detail

      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface Socket4
        Throws:
        java.io.IOException
      • flush

        public void flush()
                   throws java.io.IOException
        Specified by:
        flush in interface Socket4
        Throws:
        java.io.IOException
      • isConnected

        public boolean isConnected()
        Specified by:
        isConnected in interface Socket4
      • openParallelSocket

        public Socket4 openParallelSocket()
                                   throws java.io.IOException
        Specified by:
        openParallelSocket in interface Socket4
        Throws:
        java.io.IOException
      • read

        public int read​(byte[] buffer,
                        int offset,
                        int count)
                 throws java.io.IOException
        Specified by:
        read in interface Socket4
        Throws:
        java.io.IOException
      • setSoTimeout

        public void setSoTimeout​(int timeout)
        Specified by:
        setSoTimeout in interface Socket4
      • write

        public void write​(byte[] bytes,
                          int offset,
                          int count)
                   throws java.io.IOException
        Specified by:
        write in interface Socket4
        Throws:
        java.io.IOException
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object