tigase.io
Class SocketIO

java.lang.Object
  extended by tigase.io.SocketIO
All Implemented Interfaces:
IOInterface

public class SocketIO
extends Object
implements IOInterface

Describe class SocketIO here. Created: Sat May 14 07:18:30 2005

Version:
$Rev: 2099 $
Author:
Artur Hefczyc

Constructor Summary
SocketIO(SocketChannel sock)
          Creates a new SocketIO instance.
 
Method Summary
 int bytesRead()
          Method description
 int getInputPacketSize()
          Method description
 SocketChannel getSocketChannel()
          Method description
 void getStatistics(StatisticsList list)
          Method description
 boolean isConnected()
          Method description
 boolean isRemoteAddress(String addr)
          Method description
 ByteBuffer read(ByteBuffer buff)
          Method description
 void stop()
          Method description
 String toString()
          Method description
 boolean waitingToSend()
          Method description
 int waitingToSendSize()
          Method description
 int write(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(SocketChannel sock)
         throws IOException
Creates a new SocketIO instance.

Parameters:
sock -
Throws:
IOException
Method Detail

bytesRead

public int bytesRead()
Method description

Specified by:
bytesRead in interface IOInterface
Returns:

getInputPacketSize

public int getInputPacketSize()
                       throws IOException
Method description

Specified by:
getInputPacketSize in interface IOInterface
Returns:
Throws:
IOException

getSocketChannel

public 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(String addr)
Method description

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

read

public ByteBuffer read(ByteBuffer buff)
                throws IOException
Method description

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

stop

public void stop()
          throws IOException
Method description

Specified by:
stop in interface IOInterface
Throws:
IOException

toString

public String toString()
Method description

Overrides:
toString in class 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(ByteBuffer buff)
          throws IOException
Method description

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


Copyright © 2001-2006 Tigase Developers Team. All rights Reserved.