Class LocalFileName
java.lang.Object
org.apache.commons.vfs2.provider.AbstractFileName
org.apache.commons.vfs2.provider.local.LocalFileName
- All Implemented Interfaces:
- Comparable<FileName>,- FileName
- Direct Known Subclasses:
- WindowsFileName
A local file URI.
- 
Field SummaryFields inherited from interface org.apache.commons.vfs2.FileNameEMPTY_ARRAY, ROOT_PATH, SEPARATOR, SEPARATOR_CHAR
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedLocalFileName(String scheme, String rootFile, String path, FileType type) Constructs a new instance.
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidappendRootUri(StringBuilder buffer, boolean addPassword) Builds the root URI for this file name.createName(String path, FileType type) Factory method for creating name instances.Returns the root file for this file.toString()Returns the decoded URI of the file.Methods inherited from class org.apache.commons.vfs2.provider.AbstractFileNamecheckName, compareTo, createURI, equals, getBaseName, getDepth, getExtension, getFriendlyURI, getParent, getPath, getPathDecoded, getRelativeName, getRoot, getRootURI, getScheme, getType, getURI, getUriTrailer, hashCode, isAncestor, isDescendent, isDescendent, isFile
- 
Constructor Details- 
LocalFileNameConstructs a new instance.- Parameters:
- scheme- the scheme.
- rootFile- the root file.
- path- the absolute path, maybe empty or null.
- type- the file type.
 
 
- 
- 
Method Details- 
appendRootUriBuilds the root URI for this file name.- Specified by:
- appendRootUriin class- AbstractFileName
- Parameters:
- buffer- A StringBuilder to use to construct the URI.
- addPassword- true if the password should be added, false otherwise.
 
- 
createNameFactory method for creating name instances.- Specified by:
- createNamein class- AbstractFileName
- Parameters:
- path- The file path.
- type- The file type.
- Returns:
- The FileName.
 
- 
getRootFileReturns the root file for this file.- Returns:
- The root file name.
 
- 
toStringReturns the decoded URI of the file.- Overrides:
- toStringin class- AbstractFileName
- Returns:
- the FileName as a URI.
 
 
-