| パッケージ | 説明 |
|---|---|
| java.nio.file |
ファイル、ファイル属性、およびファイル・システムにアクセスするためのJava仮想マシン用のインタフェースとクラスを定義します。
|
| java.nio.file.spi |
java.nio.fileパッケージのサービス・プロバイダ・クラスです。 |
| 修飾子と型 | クラスと説明 |
|---|---|
class |
LinkOption
シンボリック・リンクの処理方法を定義します。
|
class |
StandardCopyOption
標準コピー・オプションを定義します。
|
| 修飾子と型 | メソッドと説明 |
|---|---|
static long |
Files.copy(InputStream in, Path target, CopyOption... options)
すべてのバイトを入力ストリームからファイルにコピーします。
|
static Path |
Files.copy(Path source, Path target, CopyOption... options)
ファイルをターゲット・ファイルにコピーします。
|
static Path |
Files.move(Path source, Path target, CopyOption... options)
ファイルをターゲット・ファイルに移動するか、そのファイル名を変更します。
|
| 修飾子と型 | メソッドと説明 |
|---|---|
abstract void |
FileSystemProvider.copy(Path source, Path target, CopyOption... options)
ファイルをターゲット・ファイルにコピーします。
|
abstract void |
FileSystemProvider.move(Path source, Path target, CopyOption... options)
ファイルをターゲット・ファイルに移動するか、そのファイル名を変更します。
|
バグまたは機能を送信
詳細なAPIリファレンスおよび開発者ドキュメントについては、Java SEのドキュメントを参照してください。そのドキュメントには、概念的な概要、用語の定義、回避方法、有効なコード例などの、開発者を対象にしたより詳細な説明が含まれています。
Copyright© 1993, 2014, Oracle and/or its affiliates. All rights reserved.