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 Red Cross in its nature, it aims and purposes, and consequently, its methods, is unlike any other organization in the country. It is an organization of physical action, of instantaneous action, at the spur of the moment; it cannot await the ordinary deliberation of organized bodies if it would be of use to suffering humanity, ... [ellipsis in original] it has by its nature a field of its own.”
—Clara Barton (18211912)