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 classStream 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.FileSystemManagerprivate org.apache.commons.vfs2.FileSystemOptionsgetOptions(String scheme) getOutputStream(URL url) locateFromURL(String basePath, String fileName) private org.apache.commons.vfs2.FileNameresolveURI(String path) private voidsetProperty(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, getOutputStreamMethods 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:
getBasePathin classDefaultFileSystem
-
getFileName
- Overrides:
getFileNamein classDefaultFileSystem
-
getInputStream
- Overrides:
getInputStreamin 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:
getOutputStreamin classDefaultFileSystem- Throws:
ConfigurationException
-
getPath
- Overrides:
getPathin classDefaultFileSystem
-
getURL
- Overrides:
getURLin classDefaultFileSystem- Throws:
MalformedURLException
-
locateFromURL
- Overrides:
locateFromURLin classDefaultFileSystem
-
resolveURI
private org.apache.commons.vfs2.FileName resolveURI(String path) throws org.apache.commons.vfs2.FileSystemException - Throws:
org.apache.commons.vfs2.FileSystemException
-
setProperty
-