tigase.io
Class ZLibIO

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

public class ZLibIO
extends Object
implements IOInterface

Created: Jul 29, 2009 11:58:02 AM

Version:
$Rev: 1811 $
Author:
Artur Hefczyc

Constructor Summary
ZLibIO(IOInterface ioi, int level)
           
 
Method Summary
 int bytesRead()
           
 int getInputPacketSize()
           
 SocketChannel getSocketChannel()
           
 void getStatistics(StatisticsList list)
           
 boolean isConnected()
           
 boolean isRemoteAddress(String addr)
           
 ByteBuffer read(ByteBuffer buff)
           
 void stop()
           
 boolean waitingToSend()
           
 int waitingToSendSize()
           
 int write(ByteBuffer buff)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZLibIO

public ZLibIO(IOInterface ioi,
              int level)
Method Detail

getSocketChannel

public SocketChannel getSocketChannel()
Specified by:
getSocketChannel in interface IOInterface

stop

public void stop()
          throws IOException
Specified by:
stop in interface IOInterface
Throws:
IOException

isConnected

public boolean isConnected()
Specified by:
isConnected in interface IOInterface

write

public int write(ByteBuffer buff)
          throws IOException
Specified by:
write in interface IOInterface
Throws:
IOException

read

public ByteBuffer read(ByteBuffer buff)
                throws IOException
Specified by:
read in interface IOInterface
Throws:
IOException

bytesRead

public int bytesRead()
Specified by:
bytesRead in interface IOInterface

getInputPacketSize

public int getInputPacketSize()
                       throws IOException
Specified by:
getInputPacketSize in interface IOInterface
Throws:
IOException

waitingToSend

public boolean waitingToSend()
Specified by:
waitingToSend in interface IOInterface

waitingToSendSize

public int waitingToSendSize()
Specified by:
waitingToSendSize in interface IOInterface

isRemoteAddress

public boolean isRemoteAddress(String addr)
Specified by:
isRemoteAddress in interface IOInterface

getStatistics

public void getStatistics(StatisticsList list)
Specified by:
getStatistics in interface IOInterface


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