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 classWraps the output stream so errors can be detected in the HTTP response. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidcreatePath(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:
getBasePathin classFileSystem
-
getFileName
- Specified by:
getFileNamein classFileSystem
-
getInputStream
- Specified by:
getInputStreamin classFileSystem- Throws:
ConfigurationException
-
getInputStream
public InputStream getInputStream(URL url, URLConnectionOptions urlConnectionOptions) throws ConfigurationException Description copied from class:FileSystemNot abstract for binary compatibility.- Overrides:
getInputStreamin classFileSystem- Parameters:
url- TODOurlConnectionOptions- Ignored.- Returns:
- TODO
- Throws:
ConfigurationException- TODO
-
getOutputStream
- Specified by:
getOutputStreamin classFileSystem- Throws:
ConfigurationException
-
getOutputStream
- Specified by:
getOutputStreamin classFileSystem- Throws:
ConfigurationException
-
getPath
- Specified by:
getPathin classFileSystem
-
getURL
- Specified by:
getURLin classFileSystem- Throws:
MalformedURLException
-
locateFromURL
- Specified by:
locateFromURLin classFileSystem
-