@PublicEvolving
public interface FileSystemFactory
The factory is typically configured via configure(Configuration) before
creating file systems via create(URI).
| Modifier and Type | Method and Description |
|---|---|
void |
configure(Configuration config)
Applies the given configuration to this factory.
|
FileSystem |
create(URI fsUri)
Creates a new file system for the given file system URI.
|
String |
getScheme()
Gets the scheme of the file system created by this factory.
|
String getScheme()
void configure(Configuration config)
create(URI) should take the configuration into
account.config - The configuration to apply.FileSystem create(URI fsUri) throws IOException
fsUri - The URI that describes the file system.IOException - Thrown if the file system could not be instantiated.Copyright © 2014–2018 The Apache Software Foundation. All rights reserved.