public class DefaultFileSystem extends FileSystem
Constructor and Description |
---|
DefaultFileSystem() |
Modifier and Type | Method and Description |
---|---|
String |
getBasePath(String path) |
String |
getFileName(String path) |
InputStream |
getInputStream(String basePath,
String fileName) |
InputStream |
getInputStream(URL url) |
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) |
getDefaultFileSystem, getFileOptionsProvider, getLogger, resetDefaultFileSystem, setDefaultFileSystem, setFileOptionsProvider, setLogger
public InputStream getInputStream(String basePath, String fileName) throws ConfigurationException
getInputStream
in class FileSystem
ConfigurationException
public InputStream getInputStream(URL url) throws ConfigurationException
getInputStream
in class FileSystem
ConfigurationException
public OutputStream getOutputStream(URL url) throws ConfigurationException
getOutputStream
in class FileSystem
ConfigurationException
public OutputStream getOutputStream(File file) throws ConfigurationException
getOutputStream
in class FileSystem
ConfigurationException
public String getPath(File file, URL url, String basePath, String fileName)
getPath
in class FileSystem
public String getBasePath(String path)
getBasePath
in class FileSystem
public String getFileName(String path)
getFileName
in class FileSystem
public URL getURL(String basePath, String file) throws MalformedURLException
getURL
in class FileSystem
MalformedURLException
public URL locateFromURL(String basePath, String fileName)
locateFromURL
in class FileSystem
Copyright © 2001–2013 The Apache Software Foundation. All rights reserved.