> For the complete documentation index, see [llms.txt](https://tuonioooo-notebook.gitbook.io/nio/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tuonioooo-notebook.gitbook.io/nio/java-nio-xiang-jie.md).

# Java NIO详解

- [阻塞与非阻塞概念](https://tuonioooo-notebook.gitbook.io/nio/java-nio-xiang-jie/zu-sai-yu-fei-zu-sai-gai-nian.md)
- [同步与异步](https://tuonioooo-notebook.gitbook.io/nio/java-nio-xiang-jie/tong-bu-yu-yi-bu.md)
- [什么是NIO](https://tuonioooo-notebook.gitbook.io/nio/java-nio-xiang-jie/shi-yao-shi-nio.md)
- [Java NIO 概述](https://tuonioooo-notebook.gitbook.io/nio/java-nio-xiang-jie/java-nio-gai-shu.md)
- [Buffer](https://tuonioooo-notebook.gitbook.io/nio/java-nio-xiang-jie/bufferhuan-chong.md)
- [Channel](https://tuonioooo-notebook.gitbook.io/nio/java-nio-xiang-jie/channeltong-dao.md)
- [概述](https://tuonioooo-notebook.gitbook.io/nio/java-nio-xiang-jie/channeltong-dao/gai-shu.md)
- [通道基础](https://tuonioooo-notebook.gitbook.io/nio/java-nio-xiang-jie/channeltong-dao/tong-dao-ji-chu.md)
- [打开通道](https://tuonioooo-notebook.gitbook.io/nio/java-nio-xiang-jie/channeltong-dao/tong-dao-ji-chu/da-kai-tong-dao.md)
- [使用通道](https://tuonioooo-notebook.gitbook.io/nio/java-nio-xiang-jie/channeltong-dao/tong-dao-ji-chu/shi-yong-tong-dao.md)
- [关闭通道](https://tuonioooo-notebook.gitbook.io/nio/java-nio-xiang-jie/channeltong-dao/tong-dao-ji-chu/guan-bi-tong-dao.md)
- [FileChannel](https://tuonioooo-notebook.gitbook.io/nio/java-nio-xiang-jie/channeltong-dao/filechannel.md)
- [FileChannel基本用法](https://tuonioooo-notebook.gitbook.io/nio/java-nio-xiang-jie/channeltong-dao/filechannel/filechannelji-ben-yong-fa.md)
- [文件锁](https://tuonioooo-notebook.gitbook.io/nio/java-nio-xiang-jie/channeltong-dao/filechannel/wen-jian-suo.md)
- [Socket通道](https://tuonioooo-notebook.gitbook.io/nio/java-nio-xiang-jie/channeltong-dao/sockettong-dao.md)
- [非阻塞模式](https://tuonioooo-notebook.gitbook.io/nio/java-nio-xiang-jie/channeltong-dao/sockettong-dao/fei-zu-sai-mo-shi.md)
- [SocketChannel](https://tuonioooo-notebook.gitbook.io/nio/java-nio-xiang-jie/channeltong-dao/sockettong-dao/socketchannel.md)
- [ServerSocketChannel](https://tuonioooo-notebook.gitbook.io/nio/java-nio-xiang-jie/channeltong-dao/sockettong-dao/serversocketchannel.md)
- [DatagramChannel](https://tuonioooo-notebook.gitbook.io/nio/java-nio-xiang-jie/channeltong-dao/sockettong-dao/datagramchannel.md)
- [Scatter与Gather](https://tuonioooo-notebook.gitbook.io/nio/java-nio-xiang-jie/channeltong-dao/scatteryu-gather.md)
- [Selector](https://tuonioooo-notebook.gitbook.io/nio/java-nio-xiang-jie/selectorff08-xuan-ze-qi-ff09.md)
- [JAVA NIO与IO](https://tuonioooo-notebook.gitbook.io/nio/java-nio-xiang-jie/java-nioyu-io.md)
- [Pipe](https://tuonioooo-notebook.gitbook.io/nio/java-nio-xiang-jie/pipe.md)
- [其他相关知识介绍](https://tuonioooo-notebook.gitbook.io/nio/java-nio-xiang-jie/qi-ta-xiang-guan-zhi-shi-jie-shao.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://tuonioooo-notebook.gitbook.io/nio/java-nio-xiang-jie.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
