public 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 and Description |
|---|---|
boolean |
hasPathCapability(Path path,
String capability)
Probe for a specific capability under the given path.
|
boolean hasPathCapability(Path path, String capability) throws 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.IOException - this should not be raised, except on problems
resolving paths or relaying the call.IllegalArgumentException - invalid argumentsCopyright © 2008–2022 Apache Software Foundation. All rights reserved.