NIO
Java · 6 notes
- Bufferhistorical
Buffer usage commonly follows writing, flip, reading, and clear or compact. These notes use its internal properties to explain state changes.
- Channelhistorical
Data can both be read from a channel and written to a channel, while stream reading and writing are usually one-way.
- Fileshistorical
Files provides operations for existence checks, directory creation, copying, moving, deletion, and recursive traversal. These notes record them through code examples.
- 3.15 NIOhistorical
NIO organizes reads and writes around channels and buffers rather than BIO byte and character streams. These notes introduce usage through those components.
- Pathhistorical
Path represents a file-system path, with capabilities related to File. These notes use examples to record path creation and manipulation.
- NIO Serverhistorical
Client and server code demonstrate Java NIO programming and how Channel, Buffer, and Selector cooperate on connections and data.