New I/O APIs

Documentation Contents
The new I/O (NIO) APIs introduced in v 1.4 provide new features and improved performance in the areas of buffer management, scalable network and file I/O, character-set support, and regular-expression matching. The NIO APIs supplement the I/O facilities in the package.


The NIO APIs include the following features:


J2SE 5.0 Enhancement - the JDK introduced a new class named The existing J2SDK 1.4.0 secure communication infrastructure,, was based on the I/O model of The class abstracts away the I/O model, and leaves developers free to secure communication pathways using alternate types of I/O. SSLEngine can be combined with the New I/O APIs to create implementations such as secure blocking or non-blocking SocketChannels. For details see the J2SE 5.0 Enhancements.


API References

New packages, classes, and interfaces:

Note: The new InetSocketAddress and SocketAddress classes, while not strictly part of the NIO APIs, are used by them.

Revised classes and interfaces:

Three new functions have been added to the Java Native Interface (JNI) to support direct buffers. For information, see JNI Enhancements in v 1.4.

For More Information

Copyright © 2002 Sun Microsystems, Inc. All Rights Reserved.

Please send comments to:
Java Software