net.sf.cindy.util
Class ChannelUtils

java.lang.Object
  extended by net.sf.cindy.util.ChannelUtils

public final class ChannelUtils
extends java.lang.Object

Utils for java nio channels.

Version:
$id$
Author:
Roger Chen

Constructor Summary
ChannelUtils()
           
 
Method Summary
static void close(java.nio.channels.Channel channel)
          Close channel and ignore any exceptions.
static void close(java.nio.channels.Selector selector)
          Close selector and ignore any exceptions.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChannelUtils

public ChannelUtils()
Method Detail

close

public static void close(java.nio.channels.Channel channel)
Close channel and ignore any exceptions.

Parameters:
channel - channel

close

public static void close(java.nio.channels.Selector selector)
Close selector and ignore any exceptions.

Parameters:
selector - selector