Class VFSFileSystem
- java.lang.Object
-
- org.apache.commons.configuration2.io.FileSystem
-
- org.apache.commons.configuration2.io.DefaultFileSystem
-
- org.apache.commons.configuration2.io.VFSFileSystem
-
public class VFSFileSystem extends DefaultFileSystem
FileSystem that uses Apache Commons VFS.- Since:
- 1.7
-
-
Constructor Summary
Constructors Constructor Description VFSFileSystem()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getBasePath(String path)
String
getFileName(String path)
InputStream
getInputStream(URL url)
OutputStream
getOutputStream(URL url)
String
getPath(File file, URL url, String basePath, String fileName)
URL
getURL(String basePath, String file)
URL
locateFromURL(String basePath, String fileName)
-
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
-
-
-
-
Constructor Detail
-
VFSFileSystem
public VFSFileSystem()
-
-
Method Detail
-
getBasePath
public String getBasePath(String path)
- Overrides:
getBasePath
in classDefaultFileSystem
-
getFileName
public String getFileName(String path)
- Overrides:
getFileName
in classDefaultFileSystem
-
getInputStream
public InputStream getInputStream(URL url) throws ConfigurationException
- Overrides:
getInputStream
in classDefaultFileSystem
- Throws:
ConfigurationException
-
getOutputStream
public OutputStream getOutputStream(URL url) throws ConfigurationException
- Overrides:
getOutputStream
in classDefaultFileSystem
- Throws:
ConfigurationException
-
getPath
public String getPath(File file, URL url, String basePath, String fileName)
- Overrides:
getPath
in classDefaultFileSystem
-
getURL
public URL getURL(String basePath, String file) throws MalformedURLException
- Overrides:
getURL
in classDefaultFileSystem
- Throws:
MalformedURLException
-
locateFromURL
public URL locateFromURL(String basePath, String fileName)
- Overrides:
locateFromURL
in classDefaultFileSystem
-
-