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 StringgetBasePath(String path)StringgetFileName(String path)InputStreamgetInputStream(URL url)OutputStreamgetOutputStream(URL url)StringgetPath(File file, URL url, String basePath, String fileName)URLgetURL(String basePath, String file)URLlocateFromURL(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:
getBasePathin classDefaultFileSystem
-
getFileName
public String getFileName(String path)
- Overrides:
getFileNamein classDefaultFileSystem
-
getInputStream
public InputStream getInputStream(URL url) throws ConfigurationException
- Overrides:
getInputStreamin classDefaultFileSystem- Throws:
ConfigurationException
-
getOutputStream
public OutputStream getOutputStream(URL url) throws ConfigurationException
- Overrides:
getOutputStreamin classDefaultFileSystem- Throws:
ConfigurationException
-
getPath
public String getPath(File file, URL url, String basePath, String fileName)
- Overrides:
getPathin classDefaultFileSystem
-
getURL
public URL getURL(String basePath, String file) throws MalformedURLException
- Overrides:
getURLin classDefaultFileSystem- Throws:
MalformedURLException
-
locateFromURL
public URL locateFromURL(String basePath, String fileName)
- Overrides:
locateFromURLin classDefaultFileSystem
-
-