Uses of Interface
java.nio.file.attribute.BasicFileAttributes
Package
Description
Defines interfaces and classes for the Java virtual machine to access files,
file attributes, and file systems.
Interfaces and classes providing access to file and file system attributes.
Service-provider classes for the
java.nio.file
package.-
Uses of BasicFileAttributes in java.nio.file
Modifier and TypeMethodDescriptionstatic <A extends BasicFileAttributes>
AFiles.readAttributes
(Path path, Class<A> type, LinkOption... options) Reads a file's attributes as a bulk operation.Modifier and TypeMethodDescriptionFileVisitor.preVisitDirectory
(T dir, BasicFileAttributes attrs) Invoked for a directory before entries in the directory are visited.SimpleFileVisitor.preVisitDirectory
(T dir, BasicFileAttributes attrs) Invoked for a directory before entries in the directory are visited.FileVisitor.visitFile
(T file, BasicFileAttributes attrs) Invoked for a file in a directory.SimpleFileVisitor.visitFile
(T file, BasicFileAttributes attrs) Invoked for a file in a directory.Modifier and TypeMethodDescriptionFiles.find
(Path start, int maxDepth, BiPredicate<Path, BasicFileAttributes> matcher, FileVisitOption... options) Returns aStream
that is lazily populated withPath
by searching for files in a file tree rooted at a given starting file. -
Uses of BasicFileAttributes in java.nio.file.attribute
Modifier and TypeInterfaceDescriptioninterface
File attributes associated with a file in a file system that supports legacy "DOS" attributes.interface
File attributes associated with files on file systems used by operating systems that implement the Portable Operating System Interface (POSIX) family of standards.Modifier and TypeMethodDescriptionBasicFileAttributeView.readAttributes()
Reads the basic file attributes as a bulk operation. -
Uses of BasicFileAttributes in java.nio.file.spi
Modifier and TypeMethodDescriptionabstract <A extends BasicFileAttributes>
AFileSystemProvider.readAttributes
(Path path, Class<A> type, LinkOption... options) Reads a file's attributes as a bulk operation.<A extends BasicFileAttributes>
AFileSystemProvider.readAttributesIfExists
(Path path, Class<A> type, LinkOption... options) Reads a file's attributes as a bulk operation if it exists.