Enhancements in Java I/O


Enhancements in Java SE 7

The java.nio.file package and its related package, java.nio.file.attribute, provide comprehensive support for file I/O and for accessing the file system. A zip file system provider is also available in JDK 7. The following resources provide more information:

In addition, the following enhancement is introduced:

Area: NIO
Standard/Platform: JDK 7
Synopsis: Prior to the JDK 7 release, direct buffers allocated using java.nio.ByteBuffer.allocateDirect(int) were aligned on a page boundary. In JDK 7, the implementation has changed so that direct buffers are no longer page aligned. This should reduce the memory requirements of applications that create lots of small buffers.
RFE: 4837564

Enhancements in Java SE 6

java.io

One new class is provided:

The following new methods were added to File:

Constructors were added to the following class:

The behavior of the following method was modified:

java.nio

Enhancements in J2SE 5.0

java.nio

Enhancements in Java 2 SDK v1.4

java.io

java.nio

Previous Enhancements


Copyright © 1993, 2020, Oracle and/or its affiliates. All rights reserved.