クラス
java.nio.channels.AsynchronousFileChannelの使用
| パッケージ | 説明 |
|---|---|
| java.nio.channels |
入出力操作を実行できるエンティティ(ファイル、ソケットなど)への接続を表すチャネルや、多重化された非ブロック入出力操作用のセレクタを定義します。
|
| java.nio.file.spi |
java.nio.fileパッケージのサービス・プロバイダ・クラス。 |
-
java.nio.channelsでのAsynchronousFileChannelの使用
AsynchronousFileChannelを返すjava.nio.channelsのメソッド 修飾子と型 メソッド 説明 static AsynchronousFileChannelAsynchronousFileChannel. open(Path file, OpenOption... options)読み込みまたは書き込み(あるいはその両方)用のファイルを開くか作成し、そのファイルにアクセスするための非同期のファイル・チャネルを返します。static AsynchronousFileChannelAsynchronousFileChannel. open(Path file, Set<? extends OpenOption> options, ExecutorService executor, FileAttribute<?>... attrs)読み込みまたは書き込み(あるいはその両方)用のファイルを開くか作成し、そのファイルにアクセスするための非同期のファイル・チャネルを返します。abstract AsynchronousFileChannelAsynchronousFileChannel. truncate(long size)このチャネルのファイルの末尾を切詰め、指定されたサイズにします。AsynchronousFileChannel型のパラメータを持つjava.nio.channelsのコンストラクタ コンストラクタ 説明 FileLock(AsynchronousFileChannel channel, long position, long size, boolean shared)このクラスの新しいインスタンスを初期化します。 -
java.nio.file.spiでのAsynchronousFileChannelの使用
AsynchronousFileChannelを返すjava.nio.file.spiのメソッド 修飾子と型 メソッド 説明 AsynchronousFileChannelFileSystemProvider. newAsynchronousFileChannel(Path path, Set<? extends OpenOption> options, ExecutorService executor, FileAttribute<?>... attrs)読み込みまたは書き込み(あるいはその両方)用のファイルを開くか作成し、そのファイルにアクセスするための非同期のファイル・チャネルを返します。