Package org.apache.commons.io.file.spi
Class FileSystemProviders
java.lang.Object
org.apache.commons.io.file.spi.FileSystemProviders
Helps to work with
FileSystemProvider
.- Since:
- 2.9.0
-
Method Summary
Modifier and TypeMethodDescriptiongetFileSystemProvider
(String scheme) Gets theFileSystemProvider
for the given scheme.getFileSystemProvider
(URI uri) Gets theFileSystemProvider
for the given URI.getFileSystemProvider
(URL url) Gets theFileSystemProvider
for the given URL.static FileSystemProvider
getFileSystemProvider
(Path path) Gets theFileSystemProvider
for the given Path.static FileSystemProviders
Returns the instance for the installed providers.
-
Method Details
-
getFileSystemProvider
Gets theFileSystemProvider
for the given Path.- Parameters:
path
- The Path to query- Returns:
- the
FileSystemProvider
for the given Path.
-
installed
Returns the instance for the installed providers.- Returns:
- the instance for the installed providers.
- See Also:
-
getFileSystemProvider
Gets theFileSystemProvider
for the given scheme.- Parameters:
scheme
- The scheme to query.- Returns:
- the
FileSystemProvider
for the given URI or null.
-
getFileSystemProvider
Gets theFileSystemProvider
for the given URI.- Parameters:
uri
- The URI to query- Returns:
- the
FileSystemProvider
for the given URI or null.
-
getFileSystemProvider
Gets theFileSystemProvider
for the given URL.- Parameters:
url
- The URL to query- Returns:
- the
FileSystemProvider
for the given URI or null.
-