Features and Organization
The APIs of NIO were designed to provide access to the low-level I/O operations of modern operating systems. Although the APIs are themselves relatively high-level, the intent is to facilitate an implementation that can directly use the most efficient operations of the underlying platform.
The Java NIO APIs are provided in the java.nio
package and its subpackages. The documentation by Oracle identifies these features.
- Buffers for data of primitive types
- Character set encoders and decoders
- A pattern-matching facility based on Perl-style regular expressions (in package
java.util.regex
) - Channels, a new primitive I/O abstraction
- A file interface that supports locks and memory mapping of files up to
Integer.MAX_VALUE
bytes (2 GiB) - A multiplexed, non-blocking I/O facility for writing scalable servers
Read more about this topic: New I/O
Famous quotes containing the words features and/or organization:
“It looks as if
Some pallid thing had squashed its features flat
And its eyes shut with overeagerness
To see what people found so interesting
In one another, and had gone to sleep
Of its own stupid lack of understanding,
Or broken its white neck of mushroom stuff
Short off, and died against the windowpane.”
—Robert Frost (18741963)
“The organization controlling the material equipment of our everyday life is such that what in itself would enable us to construct it richly plunges us instead into a poverty of abundance, making alienation all the more intolerable as each convenience promises liberation and turns out to be only one more burden. We are condemned to slavery to the means of liberation.”
—Raoul Vaneigem (b. 1934)