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:
“All visible objects, man, are but as pasteboard masks. But in each eventin the living act, the undoubted deedthere, some unknown but still reasoning thing puts forth the mouldings of its features from behind the unreasoning mask. If man will strike, strike through the mask!”
—Herman Melville (18191891)
“Prostitution is the most hideous of the afflictions produced by the unequal distribution of the worlds goods; this infamy stigmatizes the human species and bears witness against the social organization far more than does crime.”
—Flora Tristan (18031844)