public class ZLibIO extends Object implements IOInterface
| Modifier and Type | Field and Description |
|---|---|
static String |
ZLIB_CAPS
Field description
|
| Constructor and Description |
|---|
ZLibIO(IOInterface ioi,
int level)
Constructs ...
|
| Modifier and Type | Method and Description |
|---|---|
int |
bytesRead() |
boolean |
checkCapabilities(String caps) |
long |
getBuffOverflow(boolean reset) |
long |
getBytesReceived(boolean reset) |
long |
getBytesSent(boolean reset) |
int |
getInputPacketSize() |
SocketChannel |
getSocketChannel() |
void |
getStatistics(StatisticsList list,
boolean reset) |
long |
getTotalBuffOverflow() |
long |
getTotalBytesReceived() |
long |
getTotalBytesSent() |
boolean |
isConnected() |
boolean |
isRemoteAddress(String addr) |
ByteBuffer |
read(ByteBuffer buff) |
void |
setIOListener(IOListener listener) |
void |
setLogId(String logId) |
void |
stop() |
String |
toString() |
boolean |
waitingToSend() |
int |
waitingToSendSize() |
int |
write(ByteBuffer buff) |
public static final String ZLIB_CAPS
public ZLibIO(IOInterface ioi, int level)
ioi - level - public int bytesRead()
bytesRead in interface IOInterfacepublic long getBytesSent(boolean reset)
getBytesSent in interface IOInterfacepublic long getTotalBytesSent()
getTotalBytesSent in interface IOInterfacepublic long getBytesReceived(boolean reset)
getBytesReceived in interface IOInterfacepublic long getTotalBytesReceived()
getTotalBytesReceived in interface IOInterfacepublic long getBuffOverflow(boolean reset)
getBuffOverflow in interface IOInterfacepublic long getTotalBuffOverflow()
getTotalBuffOverflow in interface IOInterfacepublic boolean checkCapabilities(String caps)
checkCapabilities in interface IOInterfacepublic int getInputPacketSize()
throws IOException
getInputPacketSize in interface IOInterfaceIOExceptionpublic SocketChannel getSocketChannel()
getSocketChannel in interface IOInterfacepublic void getStatistics(StatisticsList list, boolean reset)
getStatistics in interface IOInterfacepublic boolean isConnected()
isConnected in interface IOInterfacepublic boolean isRemoteAddress(String addr)
isRemoteAddress in interface IOInterfacepublic ByteBuffer read(ByteBuffer buff) throws IOException
read in interface IOInterfaceIOExceptionpublic void stop()
throws IOException
stop in interface IOInterfaceIOExceptionpublic boolean waitingToSend()
waitingToSend in interface IOInterfacepublic int waitingToSendSize()
waitingToSendSize in interface IOInterfacepublic int write(ByteBuffer buff) throws IOException
write in interface IOInterfaceIOExceptionpublic void setLogId(String logId)
setLogId in interface IOInterfacepublic void setIOListener(IOListener listener)
Copyright © 2017 "Tigase, Inc.". All rights reserved.