tigase.io
Class SocketIO

java.lang.Object
  extended by tigase.io.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

Version:
$Rev: 2099 $
Author:
Artur Hefczyc

Constructor Summary
SocketIO(java.nio.channels.SocketChannel sock)
          Creates a new SocketIO instance.
 
Method Summary
 int bytesRead()
          Method description
 int getInputPacketSize()
          Method description
 java.nio.channels.SocketChannel getSocketChannel()
          Method description
 void getStatistics(StatisticsList list)
          Method description
 boolean isConnected()
          Method description
 boolean isRemoteAddress(java.lang.String addr)
          Method description
 java.nio.ByteBuffer read(java.nio.ByteBuffer buff)
          Method description
 void stop()
          Method description
 java.lang.String toString()
          Method description
 boolean waitingToSend()
          Method description
 int waitingToSendSize()
          Method description
 int write(java.nio.ByteBuffer buff)
          Method description
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SocketIO

public SocketIO(java.nio.channels.SocketChannel sock)
         throws java.io.IOException
Creates a new SocketIO instance.

Parameters:
sock -
Throws:
java.io.IOException
Method Detail

bytesRead

public int bytesRead()
Method description

Specified by:
bytesRead in interface IOInterface
Returns:

getInputPacketSize

public int getInputPacketSize()
                       throws java.io.IOException
Method description

Specified by:
getInputPacketSize in interface IOInterface
Returns:
Throws:
java.io.IOException

getSocketChannel

public java.nio.channels.SocketChannel getSocketChannel()
Method description

Specified by:
getSocketChannel in interface IOInterface
Returns:

getStatistics

public void getStatistics(StatisticsList list)
Method description

Specified by:
getStatistics in interface IOInterface
Parameters:
list -

isConnected

public boolean isConnected()
Method description

Specified by:
isConnected in interface IOInterface
Returns:

isRemoteAddress

public boolean isRemoteAddress(java.lang.String addr)
Method description

Specified by:
isRemoteAddress in interface IOInterface
Parameters:
addr -
Returns:

read

public java.nio.ByteBuffer read(java.nio.ByteBuffer buff)
                         throws java.io.IOException
Method description

Specified by:
read in interface IOInterface
Parameters:
buff -
Returns:
Throws:
java.io.IOException

stop

public void stop()
          throws java.io.IOException
Method description

Specified by:
stop in interface IOInterface
Throws:
java.io.IOException

toString

public java.lang.String toString()
Method description

Overrides:
toString in class java.lang.Object
Returns:

waitingToSend

public boolean waitingToSend()
Method description

Specified by:
waitingToSend in interface IOInterface
Returns:

waitingToSendSize

public int waitingToSendSize()
Method description

Specified by:
waitingToSendSize in interface IOInterface
Returns:

write

public int write(java.nio.ByteBuffer buff)
          throws java.io.IOException
Method description

Specified by:
write in interface IOInterface
Parameters:
buff -
Returns:
Throws:
java.io.IOException


Copyright © 2010 Tigase. All Rights Reserved.