インタフェース
java.nio.file.attribute.BasicFileAttributesの使用
-
BasicFileAttributesを使用しているパッケージ パッケージ 説明 java.nio.file ファイル、ファイル属性、およびファイル・システムにアクセスするためのJava仮想マシン用のインタフェースとクラスを定義します。java.nio.file.attribute ファイルおよびファイル・システム属性へのアクセスを提供するインタフェースとクラスです。java.nio.file.spi java.nio.file
パッケージのサービス・プロバイダ・クラス。 -
-
java.nio.fileでのBasicFileAttributesの使用
BasicFileAttributes型の型パラメータを持つjava.nio.fileのメソッド 修飾子と型 メソッド 説明 static <A extends BasicFileAttributes>
AFiles. readAttributes(Path path, Class<A> type, LinkOption... options)
一括操作としてファイル属性を読み取ります。BasicFileAttributes型のパラメータを持つjava.nio.fileのメソッド 修飾子と型 メソッド 説明 FileVisitResult
FileVisitor. preVisitDirectory(T dir, BasicFileAttributes attrs)
ディレクトリ内のエントリがビジットされる前に、そのディレクトリに対して呼び出されます。FileVisitResult
SimpleFileVisitor. preVisitDirectory(T dir, BasicFileAttributes attrs)
ディレクトリ内のエントリがビジットされる前に、そのディレクトリに対して呼び出されます。FileVisitResult
FileVisitor. visitFile(T file, BasicFileAttributes attrs)
ディレクトリ内のファイルに対して呼び出されます。FileVisitResult
SimpleFileVisitor. visitFile(T file, BasicFileAttributes attrs)
ディレクトリ内のファイルに対して呼び出されます。BasicFileAttributes型の型引数を持つjava.nio.fileのメソッド・パラメータ 修飾子と型 メソッド 説明 static Stream<Path>
Files. find(Path start, int maxDepth, BiPredicate<Path,BasicFileAttributes> matcher, FileVisitOption... options)
指定された開始ファイルをルートとするファイル・ツリー内でファイルを検索することでPath
が遅延設定されるStream
を返します。 -
java.nio.file.attributeでのBasicFileAttributesの使用
java.nio.file.attributeでのBasicFileAttributesのサブインタフェース 修飾子と型 インタフェース 説明 interface
DosFileAttributes
レガシー「DOS」属性をサポートするファイル・システム内のファイルに関連付けられたファイル属性です。interface
PosixFileAttributes
Portable Operating System Interface (POSIX)の標準ファミリを実装するオペレーティング・システムによって使用されるファイル・システムのファイルに関連付けられるファイル属性です。BasicFileAttributesを返すjava.nio.file.attributeのメソッド 修飾子と型 メソッド 説明 BasicFileAttributes
BasicFileAttributeView. readAttributes()
一括操作として基本ファイル属性を読み取ります。 -
java.nio.file.spiでのBasicFileAttributesの使用
BasicFileAttributes型の型パラメータを持つjava.nio.file.spiのメソッド 修飾子と型 メソッド 説明 abstract <A extends BasicFileAttributes>
AFileSystemProvider. readAttributes(Path path, Class<A> type, LinkOption... options)
一括操作としてファイル属性を読み取ります。
-