Package tigase.io

Class SocketIO

  • All Implemented Interfaces:
    IOInterface

    public class SocketIO
    extends java.lang.Object
    implements IOInterface
    Describe class SocketIO here.
    Created: Sat May 14 07:18:30 2005
    Author:
    Artur Hefczyc
    • Constructor Detail

      • SocketIO

        public SocketIO​(java.nio.channels.SocketChannel sock)
                 throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • checkCapabilities

        public boolean checkCapabilities​(java.lang.String caps)
        Specified by:
        checkCapabilities in interface IOInterface
      • getInputPacketSize

        public int getInputPacketSize()
                               throws java.io.IOException
        Specified by:
        getInputPacketSize in interface IOInterface
        Throws:
        java.io.IOException
      • getSocketChannel

        public java.nio.channels.SocketChannel getSocketChannel()
        Specified by:
        getSocketChannel in interface IOInterface
      • isRemoteAddress

        public boolean isRemoteAddress​(java.lang.String addr)
        Specified by:
        isRemoteAddress in interface IOInterface
      • read

        public java.nio.ByteBuffer read​(java.nio.ByteBuffer buff)
                                 throws java.io.IOException
        Specified by:
        read in interface IOInterface
        Throws:
        java.io.IOException
      • stop

        public void stop()
                  throws java.io.IOException
        Specified by:
        stop in interface IOInterface
        Throws:
        java.io.IOException
      • toString

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

        public int write​(java.nio.ByteBuffer buff)
                  throws java.io.IOException
        Specified by:
        write in interface IOInterface
        Throws:
        java.io.IOException
      • setLogId

        public void setLogId​(java.lang.String logId)
        Specified by:
        setLogId in interface IOInterface