Java I/O:Java SE 6 和 7 之间的差异?

Java I/O: differences between Java SE 6 and 7?

我正在准备 Java SE 6 测试,其中一个主题是 "Java I/O"。我开始阅读官方教程,但是当谈到 File I/O (Featuring NIO.2) 时,它说

Note: This tutorial reflects the file I/O mechanism introduced in the JDK 7 release. The Java SE 6 version of the File I/O tutorial was brief, but you can download the Java SE Tutorial 2008-03-14 version of the tutorial which contains the earlier File I/O content.

我去了那个 link 并下载了教程(日期是 2010-10-18 然而...),但在同一页说...

This section was updated to reflect features and conventions of the upcoming Java SE 7 release. You can download the current JDK7 snapshot from java.net. The Java SE 6 version of the File I/O tutorial was brief, but you can download the Java SE Tutorial 2008-03-14 version of the tutorial which contains the earlier File I/O content.

你能帮我找到 Java 6 的正确文档吗?或者我可以完全跳过该部分?我不想最终混淆 Java 6 和 Java 7 个特征

Could you help me to find the correct one for Java 6?

通过。 (题外话)

Or I can just totally skip that section?

没有。我建议您根据 Java 7 教程进行修改。

I don't want to end mixing up Java 6 and Java 7 features.

我不会担心的。如果这是一个问题,您可以:

  • 查看javadocs是否在Java中添加了相关的类和方法 7.

  • 阅读有关 I/O 更改的 Java7 "what is new" 文档。