1. 3.1 Comparison of the Three I/O Modelshistorical

    Relationship between Java I/O and system calls, BIO/NIO/AIO classification, comparison, and references.

  2. 3.2 Multithreaded Server Implemented with BIOhistorical

    Traditional server-side programming with BIO and its blocking points.

  3. AIOhistorical

    Asynchronous NIO classes and AsynchronousFileChannel examples for reading and writing with Future polling and CompletionHandler callbacks.

  4. 3.4 BIOhistorical

    Basic concepts: input/output, streams, and I/O for different purposes.

  5. Bufferhistorical

    Basic Buffer usage and the meanings of capacity, position, and limit.

  6. 3.6 Server Implemented with NIOhistorical

    NIO vs BIO and common questions about channel reads, selector.select, and SelectionKey.OP_WRITE.

  7. AIO Serverhistorical

    1. Example: server and client. 2. Reference.

  8. Basic Streamshistorical

    Byte streams with InputStream and OutputStream, and character streams with Reader and Writer.

  9. Channelhistorical

    Basic Channel usage.

  10. 3.10 Serialization Protocolhistorical

    What serialization is, a custom ByteBuffer-based serialization rule, and a complete custom Serializer example.

  11. File Streamshistorical

    Writing, reading, and metadata for file streams.

  12. Fileshistorical

    Check whether a file exists, create directories, copy files, move or rename files, delete files, and recursively traverse files.

  13. Heartbeat Mechanismhistorical

    For servers, periodically clear idle channels; for clients, detect disconnected sessions and whether to reconnect.

  14. BIO Serverhistorical

    1. Example: server and client. 2. Reference.

  15. 3.15 NIOhistorical

    Basic concepts: Channel and Buffer, Channel, Buffer, NIO, and Selector.

  16. Packet Protocolhistorical

    What sticky packets and split packets are, why the phenomenon appears with TCP byte streams, and how application-layer framing solves it.

  17. Pathhistorical

    What Path is, absolute paths, and relative paths.

  18. NIO Serverhistorical

    1. Example: server and client. 2. Reference.