Unless the parameter is a FileIn/OutputStream, the respective Channels::newChannel method will return a Read/WritableByteChannel which will throw an IOException instead of a ClosedChannelException if a read/write is attempted after close is invoked on the channel.
- links to