Package tigase.io
Class ZLibIO
java.lang.Object
tigase.io.ZLibIO
- All Implemented Interfaces:
IOInterface
Created: Jul 29, 2009 11:58:02 AM
- Author:
- Artur Hefczyc
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbooleancheckCapabilities(String caps) longgetBuffOverflow(boolean reset) longgetBytesReceived(boolean reset) longgetBytesSent(boolean reset) intvoidgetStatistics(StatisticsList list, boolean reset) longlonglongbooleanbooleanisRemoteAddress(String addr) read(ByteBuffer buff) voidsetIOListener(IOListener listener) voidvoidstop()toString()booleanintintwrite(ByteBuffer buff)
-
Field Details
-
ZLIB_CAPS
- See Also:
-
-
Constructor Details
-
ZLibIO
-
-
Method Details
-
bytesRead
public int bytesRead()- Specified by:
bytesReadin interfaceIOInterface
-
getBytesSent
public long getBytesSent(boolean reset) - Specified by:
getBytesSentin interfaceIOInterface
-
getTotalBytesSent
public long getTotalBytesSent()- Specified by:
getTotalBytesSentin interfaceIOInterface
-
getBytesReceived
public long getBytesReceived(boolean reset) - Specified by:
getBytesReceivedin interfaceIOInterface
-
getTotalBytesReceived
public long getTotalBytesReceived()- Specified by:
getTotalBytesReceivedin interfaceIOInterface
-
getBuffOverflow
public long getBuffOverflow(boolean reset) - Specified by:
getBuffOverflowin interfaceIOInterface
-
getTotalBuffOverflow
public long getTotalBuffOverflow()- Specified by:
getTotalBuffOverflowin interfaceIOInterface
-
checkCapabilities
- Specified by:
checkCapabilitiesin interfaceIOInterface
-
getInputPacketSize
- Specified by:
getInputPacketSizein interfaceIOInterface- Throws:
IOException
-
getSocketChannel
- Specified by:
getSocketChannelin interfaceIOInterface
-
getStatistics
- Specified by:
getStatisticsin interfaceIOInterface
-
isConnected
public boolean isConnected()- Specified by:
isConnectedin interfaceIOInterface
-
isRemoteAddress
- Specified by:
isRemoteAddressin interfaceIOInterface
-
read
- Specified by:
readin interfaceIOInterface- Throws:
IOException
-
stop
- Specified by:
stopin interfaceIOInterface- Throws:
IOException
-
toString
-
waitingToSend
public boolean waitingToSend()- Specified by:
waitingToSendin interfaceIOInterface
-
waitingToSendSize
public int waitingToSendSize()- Specified by:
waitingToSendSizein interfaceIOInterface
-
write
- Specified by:
writein interfaceIOInterface- Throws:
IOException
-
setLogId
- Specified by:
setLogIdin interfaceIOInterface
-
setIOListener
-