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 |
---|---|
<V extends FileAttributeView> |
SecureDirectoryStream.getFileAttributeView(Class<V> type)
Returns a new file attribute view to access the file attributes of this
directory.
|
static <V extends FileAttributeView> |
Files.getFileAttributeView(Path path,
Class<V> type,
LinkOption... options)
Returns a file attribute view of a given type.
|
<V extends FileAttributeView> |
SecureDirectoryStream.getFileAttributeView(T path,
Class<V> type,
LinkOption... options)
Returns a new file attribute view to access the file attributes of a file
in this directory.
|
Modifier and Type | Method and Description |
---|---|
abstract boolean |
FileStore.supportsFileAttributeView(Class<? extends FileAttributeView> type)
Tells whether or not this file store supports the file attributes
identified by the given file attribute view.
|
Modifier and Type | Interface and Description |
---|---|
interface |
AclFileAttributeView
A file attribute view that supports reading or updating a file's Access
Control Lists (ACL) or file owner attributes.
|
interface |
BasicFileAttributeView
A file attribute view that provides a view of a basic set of file
attributes common to many file systems.
|
interface |
DosFileAttributeView
A file attribute view that provides a view of the legacy "DOS" file attributes.
|
interface |
FileOwnerAttributeView
A file attribute view that supports reading or updating the owner of a file.
|
interface |
PosixFileAttributeView
A file attribute view that provides a view of the file attributes commonly
associated with files on file systems used by operating systems that implement
the Portable Operating System Interface (POSIX) family of standards.
|
interface |
UserDefinedFileAttributeView
A file attribute view that provides a view of a file's user-defined
attributes, sometimes known as extended attributes.
|
Modifier and Type | Method and Description |
---|---|
abstract <V extends FileAttributeView> |
FileSystemProvider.getFileAttributeView(Path path,
Class<V> type,
LinkOption... options)
Returns a file attribute view of a given type.
|
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2022, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.