| Package | Description |
|---|---|
| java.nio.file |
Defines interfaces and classes for the Java virtual machine to access files, file attributes, and file systems.
|
| java.nio.file.attribute |
Interfaces and classes providing access to file and file system attributes.
|
| java.nio.file.spi |
Service-provider classes for the
java.nio.file package.
|
| Modifier and Type | Method and Description |
|---|---|
static <A extends BasicFileAttributes |
Files.readAttributes(Path
Reads a file's attributes as a bulk operation.
|
| Modifier and Type | Method and Description |
|---|---|
FileVisitResult |
FileVisitor.preVisitDirectory(T dir, BasicFileAttributes
Invoked for a directory before entries in the directory are visited.
|
FileVisitResult |
SimpleFileVisitor.preVisitDirectory(T dir, BasicFileAttributes
Invoked for a directory before entries in the directory are visited.
|
FileVisitResult |
FileVisitor.visitFile(T file, BasicFileAttributes
Invoked for a file in a directory.
|
FileVisitResult |
SimpleFileVisitor.visitFile(T file, BasicFileAttributes
Invoked for a file in a directory.
|
| Modifier and Type | Method and Description |
|---|---|
static Stream |
Files.find(Path
Return a
Stream that is lazily populated with
Path by searching for files in a file tree rooted at a given starting file.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
DosFileAttributes
File attributes associated with a file in a file system that supports legacy "DOS" attributes.
|
interface |
PosixFileAttributes
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 Type | Method and Description |
|---|---|
BasicFileAttributes |
BasicFileAttributeView.readAttributes()
Reads the basic file attributes as a bulk operation.
|
| Modifier and Type | Method and Description |
|---|---|
abstract <A extends BasicFileAttributes |
FileSystemProvider.readAttributes(Path
Reads a file's attributes as a bulk operation.
|