Package org.apache.commons.configuration2.io

# 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

  Modifier and Type
  Method
  Description
  `String`
  `getBasePath(String path)`
  `String`
  `getFileName(String path)`
  `InputStream`
  `getInputStream(URL url)`
  `InputStream`
  `getInputStream(URL url, URLConnectionOptions urlConnectionOptions)`
  Not abstract for binary compatibility.
  `OutputStream`
  `getOutputStream(File file)`
  `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.FileSystem

  `getFileOptionsProvider, getLogger, setFileOptionsProvider, setLogger`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### DefaultFileSystem

    public DefaultFileSystem()

- ## Method Details

  - ### getBasePath

    public String getBasePath(String path)
    Specified by:
      `getBasePath` in class `FileSystem`

  - ### getFileName

    public String getFileName(String path)
    Specified by:
      `getFileName` in class `FileSystem`

  - ### getInputStream

    public InputStream getInputStream(URL url) throws ConfigurationException
    Specified by:
      `getInputStream` in class `FileSystem`
    Throws:
      `ConfigurationException`

  - ### getInputStream

    public InputStream getInputStream(URL url, URLConnectionOptions urlConnectionOptions) throws ConfigurationException
    Description copied from class: `FileSystem`
    Not abstract for binary compatibility.
    Overrides:
      `getInputStream` in class `FileSystem`
    Parameters:
      `url` - TODO
      `urlConnectionOptions` - Ignored.
    Returns:
      TODO
    Throws:
      `ConfigurationException` - TODO

  - ### getOutputStream

    public OutputStream getOutputStream(File file) throws ConfigurationException
    Specified by:
      `getOutputStream` in class `FileSystem`
    Throws:
      `ConfigurationException`

  - ### getOutputStream

    public OutputStream getOutputStream(URL url) throws ConfigurationException
    Specified by:
      `getOutputStream` in class `FileSystem`
    Throws:
      `ConfigurationException`

  - ### getPath

    public String getPath(File file, URL url, String basePath, String fileName)
    Specified by:
      `getPath` in class `FileSystem`

  - ### getURL

    public URL getURL(String basePath, String file) throws MalformedURLException
    Specified by:
      `getURL` in class `FileSystem`
    Throws:
      `MalformedURLException`

  - ### locateFromURL

    public URL locateFromURL(String basePath, String fileName)
    Specified by:
      `locateFromURL` in class `FileSystem`