public abstract class FileSystem extends Object
| Constructor and Description |
|---|
FileSystem() |
| Modifier and Type | Method and Description |
|---|---|
abstract String |
getBasePath(String path) |
abstract String |
getFileName(String path) |
FileOptionsProvider |
getFileOptionsProvider() |
abstract InputStream |
getInputStream(URL url) |
ConfigurationLogger |
getLogger()
Returns the logger used by this FileSystem.
|
abstract OutputStream |
getOutputStream(File file) |
abstract OutputStream |
getOutputStream(URL url) |
abstract String |
getPath(File file,
URL url,
String basePath,
String fileName) |
abstract URL |
getURL(String basePath,
String fileName) |
abstract URL |
locateFromURL(String basePath,
String fileName) |
void |
setFileOptionsProvider(FileOptionsProvider provider)
Set the FileOptionsProvider
|
void |
setLogger(ConfigurationLogger log)
Allows setting the logger to be used by this FileSystem.
|
public ConfigurationLogger getLogger()
public void setLogger(ConfigurationLogger log)
log - the new loggerpublic void setFileOptionsProvider(FileOptionsProvider provider)
provider - The FileOptionsProviderpublic FileOptionsProvider getFileOptionsProvider()
public abstract InputStream getInputStream(URL url) throws ConfigurationException
ConfigurationExceptionpublic abstract OutputStream getOutputStream(URL url) throws ConfigurationException
ConfigurationExceptionpublic abstract OutputStream getOutputStream(File file) throws ConfigurationException
ConfigurationExceptionpublic abstract URL getURL(String basePath, String fileName) throws MalformedURLException
MalformedURLExceptionCopyright © 2001–2020 The Apache Software Foundation. All rights reserved.