When the thread is interrupted by a call to interrupt() it will close the channel, set the interrupt status of the thread to true, and throw a ClosedByInterruptException.
interrupt()
ClosedByInterruptException