Example usage for java.nio.channels ByteChannel isOpen

List of usage examples for java.nio.channels ByteChannel isOpen

Introduction

In this page you can find the example usage for java.nio.channels ByteChannel isOpen.

Prototype

public boolean isOpen();

Source Link

Document

Tells whether or not this channel is open.

Usage

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();
}