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
ConfigurationException
public abstract OutputStream getOutputStream(URL url) throws ConfigurationException
ConfigurationException
public abstract OutputStream getOutputStream(File file) throws ConfigurationException
ConfigurationException
public abstract URL getURL(String basePath, String fileName) throws MalformedURLException
MalformedURLException
Copyright © 2001–2020 The Apache Software Foundation. All rights reserved.