Package org.apache.commons.vfs2.provider
Interface LocalFileProvider
-
- All Superinterfaces:
FileProvider
- All Known Implementing Classes:
DefaultLocalFileProvider
public interface LocalFileProvider extends FileProvider
A file provider which handles local files.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description FileObject
findLocalFile(java.io.File file)
Converts from java.io.File to FileObject.FileObject
findLocalFile(java.lang.String name)
Finds a local file, from its local name.boolean
isAbsoluteLocalName(java.lang.String name)
Determines if a name is an absolute file name.-
Methods inherited from interface org.apache.commons.vfs2.provider.FileProvider
createFileSystem, findFile, getCapabilities, getConfigBuilder, parseUri
-
-
-
-
Method Detail
-
isAbsoluteLocalName
boolean isAbsoluteLocalName(java.lang.String name)
Determines if a name is an absolute file name.TODO - Move this to a general file name parser interface.
- Parameters:
name
- The name to test.- Returns:
- true if the name is absolute.
-
findLocalFile
FileObject findLocalFile(java.lang.String name) throws FileSystemException
Finds a local file, from its local name.- Parameters:
name
- The name of the file to locate.- Returns:
- The FileObject for the file.
- Throws:
FileSystemException
- if an error occurs.
-
findLocalFile
FileObject findLocalFile(java.io.File file) throws FileSystemException
Converts from java.io.File to FileObject.- Parameters:
file
- The File for the file.- Returns:
- The FileObject for the file.
- Throws:
FileSystemException
- if an error occurs.
-
-