public WritableByteChannel reset ( WritableByteChannel channel ) throws IOException { WritableByteChannel old = this . channel ; this . channel = channel ; return old ; }
Reset channel . This method doesn t close the old channel .