net.i2p.i2ptunnel.irc

## Class IrcOutboundFilter

- java.lang.Object
- - net.i2p.i2ptunnel.irc.IrcOutboundFilter

- All Implemented Interfaces:
    Runnable

      public class IrcOutboundFilter
      extends Object
      implements Runnable

  Thread to do outbound filtering. Moved from I2PTunnelIRCClient.java

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `IrcOutboundFilter(Socket lcl, I2PSocket rem, StringBuffer pong, Log log)`
    `IrcOutboundFilter(Socket lcl, I2PSocket rem, StringBuffer pong, Log log, DCCHelper helper)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `run()`
    `void` | `setOnDisconnect(Runnable callback)` Set a callback to run when the filter disconnects.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### IrcOutboundFilter

          public IrcOutboundFilter(Socket lcl,
                                   I2PSocket rem,
                                   StringBuffer pong,
                                   Log log)

    - #### IrcOutboundFilter

          public IrcOutboundFilter(Socket lcl,
                                   I2PSocket rem,
                                   StringBuffer pong,
                                   Log log,
                                   DCCHelper helper)

      Parameters:
        `helper` - may be null

  - ### Method Detail

    - #### run

          public void run()

      Specified by:
        `run` in interface `Runnable`

    - #### setOnDisconnect

          public void setOnDisconnect(Runnable callback)

      Set a callback to run when the filter disconnects.
      Parameters:
        `callback` - the callback to run on disconnect