Java

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 java.io package.

Features

The NIO APIs include the following features:

Enhancements

J2SE 5.0 Enhancement - the JDK introduced a new class named javax.net.ssl.SSLEngine. The existing J2SDK 1.4.0 secure communication infrastructure, javax.net.ssl.SSLSocket, was based on the I/O model of java.net.Socket. The javax.net.ssl.SSLEngine 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.

Examples

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-io@java.sun.com
Sun
Java Software