Documentation Contents

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. Applications that previously relied on the undocumented alignment can revert to previous behavior if they are run with the command line option: -XX:+PageAlignDirectMemory.
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


Oracle and/or its affiliates Copyright © 1993, 2013, Oracle and/or its affiliates. All rights reserved.
Contact Us