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 theFileSystemProviderfor the given scheme.getFileSystemProvider(URI uri) Gets theFileSystemProviderfor the given URI.getFileSystemProvider(URL url) Gets theFileSystemProviderfor the given URL.static FileSystemProvidergetFileSystemProvider(Path path) Gets theFileSystemProviderfor the given Path.static FileSystemProvidersReturns the instance for the installed providers.
-
Method Details
-
getFileSystemProvider
Gets theFileSystemProviderfor the given Path.- Parameters:
path- The Path to query- Returns:
- the
FileSystemProviderfor the given Path.
-
installed
Returns the instance for the installed providers.- Returns:
- the instance for the installed providers.
- See Also:
-
getFileSystemProvider
Gets theFileSystemProviderfor the given scheme.- Parameters:
scheme- The scheme to query.- Returns:
- the
FileSystemProviderfor the given URI or null.
-
getFileSystemProvider
Gets theFileSystemProviderfor the given URI.- Parameters:
uri- The URI to query- Returns:
- the
FileSystemProviderfor the given URI or null.
-
getFileSystemProvider
Gets theFileSystemProviderfor the given URL.- Parameters:
url- The URL to query- Returns:
- the
FileSystemProviderfor the given URI or null.
-