public abstract void close () throws IOException

Implementing: java.nio.channels.Channel

Closes this channel.

Any thread currently blocked in an I/O operation upon this channel will receive an AsynchronousCloseException.

This method otherwise behaves exactly as specified by the Channel interface.

Exceptions:
IOException    If an I/O error occurs