Java
234 notes
Some notes are currently available only in Chinese. English translations are shown when available.
- 3.1 Comparison of the Three I/O Modelshistorical
Relationship between Java I/O and system calls, BIO/NIO/AIO classification, comparison, and references.
- 3.2 Multithreaded Server Implemented with BIOhistorical
Traditional server-side programming with BIO and its blocking points.
- AIOhistorical
Asynchronous NIO classes and AsynchronousFileChannel examples for reading and writing with Future polling and CompletionHandler callbacks.
- 3.6 Server Implemented with NIOhistorical
NIO vs BIO and common questions about channel reads, selector.select, and SelectionKey.OP_WRITE.
- Basic Streamshistorical
Byte streams with InputStream and OutputStream, and character streams with Reader and Writer.
- 3.10 Serialization Protocolhistorical
What serialization is, a custom ByteBuffer-based serialization rule, and a complete custom Serializer example.