List of usage examples for java.nio.channels ByteChannel isOpen
public boolean isOpen();
From source file:xbird.util.net.PoolableSocketChannelFactory.java
public boolean validateObject(ByteChannel sock) { if (sock == null) { return false; }//from ww w .jav a2 s. co m return sock.isOpen(); }