AbstractFileSystem, AbstractMapRFileSystem, ChecksumFileSystem, ChecksumFs, DelegateToFileSystem, FileContext, FileSystem, FilterFileSystem, FilterFs, FTPFileSystem, FtpFs, HarFileSystem, HarFs, HttpFileSystem, HttpsFileSystem, LocalFileSystem, LocalFs, RawLocalFileSystem, RawLocalFs, SFTPFileSystem, ViewFileSystem, ViewFileSystemOverloadScheme, ViewFspublic interface PathCapabilities
StreamCapabilities; a query to see if,
a FileSystem/FileContext instance has a specific capability under the given
path.
Other classes may also implement the interface, as desired.
See CommonPathCapabilities for the well-known capabilities.| Modifier and Type | Method | Description |
|---|---|---|
boolean |
hasPathCapability(Path path,
java.lang.String capability) |
Probe for a specific capability under the given path.
|
boolean hasPathCapability(Path path, java.lang.String capability) throws java.io.IOException
true, this instance is explicitly
declaring that the capability is available.
If the function returns false, it can mean one of:
Implementors: PathCapabilitiesSupport
can be used to help implement this method.
path - path to query the capability of.capability - non-null, non-empty string to query the path for support.java.io.IOException - this should not be raised, except on problems
resolving paths or relaying the call.java.lang.IllegalArgumentException - invalid argumentsCopyright © 2008–2025 Apache Software Foundation. All rights reserved.