如何关闭SocketChannel?

答案解析

调用close()方法关闭通道,释放网络资源。