tigase.io

## Class ZLibIO

- java.lang.Object
- - tigase.io.ZLibIO

- All Implemented Interfaces:
    IOInterface

      public class ZLibIO
      extends Object
      implements IOInterface

  Created: Jul 29, 2009 11:58:02 AM
  Version:
    $Rev$
  Author:
    Artur Hefczyc

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static String` | `ZLIB_CAPS` Field description

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `ZLibIO(IOInterface ioi, int level)` Constructs ...

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `bytesRead()` Method description
    `boolean` | `checkCapabilities(String caps)` Method description
    `long` | `getBuffOverflow(boolean reset)`
    `long` | `getBytesReceived(boolean reset)`
    `long` | `getBytesSent(boolean reset)`
    `int` | `getInputPacketSize()` Method description
    `SocketChannel` | `getSocketChannel()` Method description
    `void` | `getStatistics(StatisticsList list, boolean reset)` Method description
    `long` | `getTotalBuffOverflow()`
    `long` | `getTotalBytesReceived()`
    `long` | `getTotalBytesSent()`
    `boolean` | `isConnected()` Method description
    `boolean` | `isRemoteAddress(String addr)` Method description
    `ByteBuffer` | `read(ByteBuffer buff)` Method description
    `void` | `setIOListener(tigase.util.IOListener listener)`
    `void` | `setLogId(String logId)`
    `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`

- - ### Field Detail

    - #### ZLIB_CAPS

          public static final String ZLIB_CAPS

      Field description
      See Also:
        Constant Field Values

  - ### Constructor Detail

    - #### ZLibIO

          public ZLibIO(IOInterface ioi,
                int level)

      Constructs ...
      Parameters:
        `ioi` -
        `level` -

  - ### Method Detail

    - #### bytesRead

          public int bytesRead()

      Method description
      Specified by:
        `bytesRead` in interface `IOInterface`

    - #### getBytesSent

          public long getBytesSent(boolean reset)

      Specified by:
        `getBytesSent` in interface `IOInterface`

    - #### getTotalBytesSent

          public long getTotalBytesSent()

      Specified by:
        `getTotalBytesSent` in interface `IOInterface`

    - #### getBytesReceived

          public long getBytesReceived(boolean reset)

      Specified by:
        `getBytesReceived` in interface `IOInterface`

    - #### getTotalBytesReceived

          public long getTotalBytesReceived()

      Specified by:
        `getTotalBytesReceived` in interface `IOInterface`

    - #### getBuffOverflow

          public long getBuffOverflow(boolean reset)

      Specified by:
        `getBuffOverflow` in interface `IOInterface`

    - #### getTotalBuffOverflow

          public long getTotalBuffOverflow()

      Specified by:
        `getTotalBuffOverflow` in interface `IOInterface`

    - #### checkCapabilities

          public boolean checkCapabilities(String caps)

      Method description
      Specified by:
        `checkCapabilities` in interface `IOInterface`
      Parameters:
        `caps` -

    - #### getInputPacketSize

          public int getInputPacketSize()
                                 throws IOException

      Method description
      Specified by:
        `getInputPacketSize` in interface `IOInterface`
      Throws:
        `IOException`

    - #### getSocketChannel

          public SocketChannel getSocketChannel()

      Method description
      Specified by:
        `getSocketChannel` in interface `IOInterface`

    - #### getStatistics

          public void getStatistics(StatisticsList list,
                           boolean reset)

      Method description
      Specified by:
        `getStatistics` in interface `IOInterface`
      Parameters:
        `list` -
        `reset` -

    - #### isConnected

          public boolean isConnected()

      Method description
      Specified by:
        `isConnected` in interface `IOInterface`

    - #### isRemoteAddress

          public boolean isRemoteAddress(String addr)

      Method description
      Specified by:
        `isRemoteAddress` in interface `IOInterface`
      Parameters:
        `addr` -

    - #### read

          public ByteBuffer read(ByteBuffer buff)
                          throws IOException

      Method description
      Specified by:
        `read` in interface `IOInterface`
      Parameters:
        `buff` -
      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`

    - #### waitingToSend

          public boolean waitingToSend()

      Method description
      Specified by:
        `waitingToSend` in interface `IOInterface`

    - #### waitingToSendSize

          public int waitingToSendSize()

      Method description
      Specified by:
        `waitingToSendSize` in interface `IOInterface`

    - #### write

          public int write(ByteBuffer buff)
                    throws IOException

      Method description
      Specified by:
        `write` in interface `IOInterface`
      Parameters:
        `buff` -
      Throws:
        `IOException`

    - #### setLogId

          public void setLogId(String logId)

      Specified by:
        `setLogId` in interface `IOInterface`

    - #### setIOListener

          public void setIOListener(tigase.util.IOListener listener)

Copyright © 2014 "Tigase, Inc.". All rights reserved.