Class DefaultFileSystem
java.lang.Object
org.apache.commons.configuration2.io.FileSystem
org.apache.commons.configuration2.io.DefaultFileSystem
- Direct Known Subclasses:
VFSFileSystem
FileSystem that uses java.io.File or HttpClient.
- Since:
- 1.7
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final class
Wraps the output stream so errors can be detected in the HTTP response. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
createPath
(File file) Create the path to the specified file.getBasePath
(String path) getFileName
(String path) getInputStream
(URL url) getInputStream
(URL url, URLConnectionOptions urlConnectionOptions) Not abstract for binary compatibility.getOutputStream
(File file) getOutputStream
(URL url) locateFromURL
(String basePath, String fileName) Methods inherited from class org.apache.commons.configuration2.io.FileSystem
getFileOptionsProvider, getLogger, setFileOptionsProvider, setLogger
-
Constructor Details
-
DefaultFileSystem
public DefaultFileSystem()
-
-
Method Details
-
createPath
Create the path to the specified file.- Parameters:
file
- the target file- Throws:
ConfigurationException
- if the path cannot be created
-
getBasePath
- Specified by:
getBasePath
in classFileSystem
-
getFileName
- Specified by:
getFileName
in classFileSystem
-
getInputStream
- Specified by:
getInputStream
in classFileSystem
- Throws:
ConfigurationException
-
getInputStream
public InputStream getInputStream(URL url, URLConnectionOptions urlConnectionOptions) throws ConfigurationException Description copied from class:FileSystem
Not abstract for binary compatibility.- Overrides:
getInputStream
in classFileSystem
- Parameters:
url
- TODOurlConnectionOptions
- Ignored.- Returns:
- TODO
- Throws:
ConfigurationException
- TODO
-
getOutputStream
- Specified by:
getOutputStream
in classFileSystem
- Throws:
ConfigurationException
-
getOutputStream
- Specified by:
getOutputStream
in classFileSystem
- Throws:
ConfigurationException
-
getPath
- Specified by:
getPath
in classFileSystem
-
getURL
- Specified by:
getURL
in classFileSystem
- Throws:
MalformedURLException
-
locateFromURL
- Specified by:
locateFromURL
in classFileSystem
-