Class DefaultFileSystem
- java.lang.Object
-
- org.apache.commons.configuration2.io.FileSystem
-
- org.apache.commons.configuration2.io.DefaultFileSystem
-
- Direct Known Subclasses:
VFSFileSystem
public class DefaultFileSystem extends FileSystem
FileSystem that uses java.io.File or HttpClient.- Since:
- 1.7
-
-
Constructor Summary
Constructors Constructor Description DefaultFileSystem()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetBasePath(java.lang.String path)java.lang.StringgetFileName(java.lang.String path)java.io.InputStreamgetInputStream(java.net.URL url)java.io.InputStreamgetInputStream(java.net.URL url, URLConnectionOptions urlConnectionOptions)Not abstract for binary compatibility.java.io.OutputStreamgetOutputStream(java.io.File file)java.io.OutputStreamgetOutputStream(java.net.URL url)java.lang.StringgetPath(java.io.File file, java.net.URL url, java.lang.String basePath, java.lang.String fileName)java.net.URLgetURL(java.lang.String basePath, java.lang.String file)java.net.URLlocateFromURL(java.lang.String basePath, java.lang.String fileName)-
Methods inherited from class org.apache.commons.configuration2.io.FileSystem
getFileOptionsProvider, getLogger, setFileOptionsProvider, setLogger
-
-
-
-
Method Detail
-
getInputStream
public java.io.InputStream getInputStream(java.net.URL url) throws ConfigurationException- Specified by:
getInputStreamin classFileSystem- Throws:
ConfigurationException
-
getInputStream
public java.io.InputStream getInputStream(java.net.URL url, URLConnectionOptions urlConnectionOptions) throws ConfigurationExceptionDescription copied from class:FileSystemNot abstract for binary compatibility.- Overrides:
getInputStreamin classFileSystem- Parameters:
url- TODOurlConnectionOptions- Ignored.- Returns:
- TODO
- Throws:
ConfigurationException- TODO
-
getOutputStream
public java.io.OutputStream getOutputStream(java.net.URL url) throws ConfigurationException- Specified by:
getOutputStreamin classFileSystem- Throws:
ConfigurationException
-
getOutputStream
public java.io.OutputStream getOutputStream(java.io.File file) throws ConfigurationException- Specified by:
getOutputStreamin classFileSystem- Throws:
ConfigurationException
-
getPath
public java.lang.String getPath(java.io.File file, java.net.URL url, java.lang.String basePath, java.lang.String fileName)- Specified by:
getPathin classFileSystem
-
getBasePath
public java.lang.String getBasePath(java.lang.String path)
- Specified by:
getBasePathin classFileSystem
-
getFileName
public java.lang.String getFileName(java.lang.String path)
- Specified by:
getFileNamein classFileSystem
-
getURL
public java.net.URL getURL(java.lang.String basePath, java.lang.String file) throws java.net.MalformedURLException- Specified by:
getURLin classFileSystem- Throws:
java.net.MalformedURLException
-
locateFromURL
public java.net.URL locateFromURL(java.lang.String basePath, java.lang.String fileName)- Specified by:
locateFromURLin classFileSystem
-
-