Class VFSFileSystem
java.lang.Object
org.apache.commons.configuration2.io.FileSystem
org.apache.commons.configuration2.io.DefaultFileSystem
org.apache.commons.configuration2.io.VFSFileSystem
FileSystem that uses Apache Commons VFS.
- Since:
- 1.7
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final class
Stream handler required to create URL. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetBasePath
(String path) getFileName
(String path) getInputStream
(URL url) private org.apache.commons.vfs2.FileSystemManager
private org.apache.commons.vfs2.FileSystemOptions
getOptions
(String scheme) getOutputStream
(URL url) locateFromURL
(String basePath, String fileName) private org.apache.commons.vfs2.FileName
resolveURI
(String path) private void
setProperty
(org.apache.commons.vfs2.FileSystemConfigBuilder builder, org.apache.commons.vfs2.FileSystemOptions options, String key, Object value) Methods inherited from class org.apache.commons.configuration2.io.DefaultFileSystem
getInputStream, getOutputStream
Methods inherited from class org.apache.commons.configuration2.io.FileSystem
getFileOptionsProvider, getLogger, setFileOptionsProvider, setLogger
-
Field Details
-
log
private final org.apache.commons.logging.Log logThe logger.
-
-
Constructor Details
-
VFSFileSystem
public VFSFileSystem()
-
-
Method Details
-
getBasePath
- Overrides:
getBasePath
in classDefaultFileSystem
-
getFileName
- Overrides:
getFileName
in classDefaultFileSystem
-
getInputStream
- Overrides:
getInputStream
in classDefaultFileSystem
- Throws:
ConfigurationException
-
getManager
private org.apache.commons.vfs2.FileSystemManager getManager() throws org.apache.commons.vfs2.FileSystemException- Throws:
org.apache.commons.vfs2.FileSystemException
-
getOptions
-
getOutputStream
- Overrides:
getOutputStream
in classDefaultFileSystem
- Throws:
ConfigurationException
-
getPath
- Overrides:
getPath
in classDefaultFileSystem
-
getURL
- Overrides:
getURL
in classDefaultFileSystem
- Throws:
MalformedURLException
-
locateFromURL
- Overrides:
locateFromURL
in classDefaultFileSystem
-
resolveURI
private org.apache.commons.vfs2.FileName resolveURI(String path) throws org.apache.commons.vfs2.FileSystemException - Throws:
org.apache.commons.vfs2.FileSystemException
-
setProperty
-