java.sun.com/j2se/1.4.2/docs/guide/nio -> java.sun.com/j2se/1.4.2/docs/guide/nio/
Documentation Contents The new I/O (NIO) APIs introduced in v 14 provide new features and impr oved performance in the areas of buffer management, scalable network an d file I/O, character-set support, and regular-expression matching.
FileOutputStream classes, getChann el methods have been added to return the underlying FileChannel object, and the close methods have been revised to close the underlying channel.
RandomAccessFile class, a getChannel method has been added and the close method has been revised to close the underlying channel. The RandomAccessFile constructors now support the mode characters "s" and "d" to allow the specification, at file-open time, of synchronous writes or synchronous-data writes.
OutputStreamWriter classes, cons tructors have been added that take a stream and a Charset object, and the getEncoding methods have been revised to return the historical name of the encoding being used. Constructors to InputStreamReader and OutputStreamWriter have been added that take existing CharsetDecoder and CharsetEncoder objects, respectively.
The subSequence m ethod has been added, as required by the CharSequence interface that String now implements. Three additional methods have been added: matches, replaceAll, and replaceFirst.
IllegalBlockingModeException if the socket has a channel and the channel is in non-blocking mode. The close method now closes the socket's channel, if it has one, and the new getChannel method returns the underlying channel, if any.
IllegalBlockingModeException if the socket has a channel and the channel is in non-blocking mode. The getChannel method has been added and close revised, for the same reasons as in DatagramSocket.
Socket class, the getInputStream and getOutputStream metho ds have been revised to delegate all I/O operations to the socket's channel, if it has one. IllegalBlockingModeException if the socket has a channel and the channel is in non-blocking mode. The getChannel method has been added and close revised, for the same reasons as in DatagramSocket. Three new functions have been added to the Java Native Interface (JNI) t o support direct buffers.
|