| パッケージ | 説明 | 
|---|---|
| java.nio.channels | 
 入出力操作を実行できるエンティティ(ファイル、ソケットなど)への接続を表すチャネルや、多重化された非ブロック入出力操作用のセレクタを定義します。 
 | 
| java.nio.file | 
 ファイル、ファイル属性、およびファイル・システムにアクセスするためのJava仮想マシン用のインタフェースとクラスを定義します。 
 | 
| java.nio.file.spi | 
java.nio.fileパッケージのサービス・プロバイダ・クラス。 | 
| 修飾子と型 | メソッドと説明 | 
|---|---|
static AsynchronousFileChannel | 
AsynchronousFileChannel.open(Path file, OpenOption... options)
読み込みまたは書き込み(あるいはその両方)用のファイルを開くか作成し、そのファイルにアクセスするための非同期のファイル・チャネルを返します。 
 | 
static FileChannel | 
FileChannel.open(Path path, OpenOption... options)
ファイルを開くか作成し、そのファイルにアクセスするためのファイル・チャネルを返します。 
 | 
| 修飾子と型 | メソッドと説明 | 
|---|---|
static AsynchronousFileChannel | 
AsynchronousFileChannel.open(Path file, Set<? extends OpenOption> options, ExecutorService executor, FileAttribute<?>... attrs)
読み込みまたは書き込み(あるいはその両方)用のファイルを開くか作成し、そのファイルにアクセスするための非同期のファイル・チャネルを返します。 
 | 
static FileChannel | 
FileChannel.open(Path path, Set<? extends OpenOption> options, FileAttribute<?>... attrs)
ファイルを開くか作成し、そのファイルにアクセスするためのファイル・チャネルを返します。 
 | 
| 修飾子と型 | クラスと説明 | 
|---|---|
class  | 
LinkOption
シンボリック・リンクの処理方法を定義します。 
 | 
class  | 
StandardOpenOption
標準オープン・オプションを定義します。 
 | 
| 修飾子と型 | メソッドと説明 | 
|---|---|
static BufferedWriter | 
Files.newBufferedWriter(Path path, Charset cs, OpenOption... options)
ファイルを書込み用に開くか作成して、そのファイルに効果的な方法でテキストを書き込むために使用できる 
BufferedWriterを返します。 | 
static BufferedWriter | 
Files.newBufferedWriter(Path path, OpenOption... options)
ファイルを書込み用に開くか作成し、効率的な方法でファイルにテキストを書き込む 
BufferedWriterを返します。 | 
static SeekableByteChannel | 
Files.newByteChannel(Path path, OpenOption... options)
ファイルを開くか作成し、そのファイルにアクセスするためのシーク可能なバイト・チャネルを返します。 
 | 
static InputStream | 
Files.newInputStream(Path path, OpenOption... options)
ファイルを開き、そのファイルから読み取る入力ストリームを返します。 
 | 
static OutputStream | 
Files.newOutputStream(Path path, OpenOption... options)
ファイルを開くか作成して、そのファイルにバイトを書き込むために使用できる出力ストリームを返します。 
 | 
static Path | 
Files.write(Path path, byte[] bytes, OpenOption... options)
バイトをファイルに書き込みます。 
 | 
static Path | 
Files.write(Path path, Iterable<? extends CharSequence> lines, Charset cs, OpenOption... options)
テキスト行をファイルに書き込みます。 
 | 
static Path | 
Files.write(Path path, Iterable<? extends CharSequence> lines, OpenOption... options)
テキスト行をファイルに書き込みます。 
 | 
| 修飾子と型 | メソッドと説明 | 
|---|---|
static SeekableByteChannel | 
Files.newByteChannel(Path path, Set<? extends OpenOption> options, FileAttribute<?>... attrs)
ファイルを開くか作成し、そのファイルにアクセスするためのシーク可能なバイト・チャネルを返します。 
 | 
SeekableByteChannel | 
SecureDirectoryStream.newByteChannel(T path, Set<? extends OpenOption> options, FileAttribute<?>... attrs)
このディレクトリ内のファイルを開くか作成し、そのファイルにアクセスするためのシーク可能なバイト・チャネルを返します。 
 | 
| 修飾子と型 | メソッドと説明 | 
|---|---|
InputStream | 
FileSystemProvider.newInputStream(Path path, OpenOption... options)
ファイルを開き、そのファイルから読み取る入力ストリームを返します。 
 | 
OutputStream | 
FileSystemProvider.newOutputStream(Path path, OpenOption... options)
ファイルを開くか作成して、そのファイルにバイトを書き込むために使用できる出力ストリームを返します。 
 | 
| 修飾子と型 | メソッドと説明 | 
|---|---|
AsynchronousFileChannel | 
FileSystemProvider.newAsynchronousFileChannel(Path path, Set<? extends OpenOption> options, ExecutorService executor, FileAttribute<?>... attrs)
読み込みまたは書き込み(あるいはその両方)用のファイルを開くか作成し、そのファイルにアクセスするための非同期のファイル・チャネルを返します。 
 | 
abstract SeekableByteChannel | 
FileSystemProvider.newByteChannel(Path path, Set<? extends OpenOption> options, FileAttribute<?>... attrs)
ファイルを開くか作成し、そのファイルにアクセスするためのシーク可能なバイト・チャネルを返します。 
 | 
FileChannel | 
FileSystemProvider.newFileChannel(Path path, Set<? extends OpenOption> options, FileAttribute<?>... attrs)
読み取りまたは書き込み(あるいはその両方)用のファイルを開くか作成し、そのファイルにアクセスするためのファイル・チャネルを返します。 
 | 
 バグまたは機能を送信 
詳細なAPIリファレンスおよび開発者ドキュメントについては、Java SEのドキュメントを参照してください。そのドキュメントには、概念的な概要、用語の定義、回避方法、有効なコード例などの、開発者を対象にしたより詳細な説明が含まれています。
 Copyright© 1993, 2014, Oracle and/or its affiliates. All rights reserved.