Package org.apache.commons.vfs2.provider
Interface LocalFileProvider
- All Superinterfaces:
- FileProvider
- All Known Implementing Classes:
- DefaultLocalFileProvider
A file provider which handles local files.
- 
Method SummaryModifier and TypeMethodDescriptionfindLocalFile(File file) Converts from java.io.File to FileObject.findLocalFile(String name) Finds a local file, from its local name.booleanisAbsoluteLocalName(String name) Determines if a name is an absolute file name.Methods inherited from interface org.apache.commons.vfs2.provider.FileProvidercreateFileSystem, findFile, getCapabilities, getConfigBuilder, parseUri
- 
Method Details- 
findLocalFileConverts 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.
 
- 
findLocalFileFinds 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.
 
- 
isAbsoluteLocalNameDetermines 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.
 
 
-