org.apache.commons.vfs2.provider.local
Class LocalFileName
java.lang.Object
org.apache.commons.vfs2.provider.AbstractFileName
org.apache.commons.vfs2.provider.local.LocalFileName
- All Implemented Interfaces:
- java.lang.Comparable<FileName>, FileName
- Direct Known Subclasses:
- WindowsFileName
public class LocalFileName
- extends AbstractFileName
A local file URI.
- Author:
- Commons VFS team
Constructor Summary |
protected |
LocalFileName(java.lang.String scheme,
java.lang.String rootFile,
java.lang.String path,
FileType type)
|
Method Summary |
protected void |
appendRootUri(java.lang.StringBuilder buffer,
boolean addPassword)
Builds the root URI for this file name. |
FileName |
createName(java.lang.String path,
FileType type)
Factory method for creating name instances. |
java.lang.String |
getRootFile()
Returns the root file for this file. |
Methods inherited from class org.apache.commons.vfs2.provider.AbstractFileName |
checkName, compareTo, createURI, equals, getBaseName, getDepth, getExtension, getFriendlyURI, getParent, getPath, getPathDecoded, getRelativeName, getRoot, getRootURI, getScheme, getType, getURI, getUriTrailer, hashCode, isAncestor, isDescendent, isDescendent, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
LocalFileName
protected LocalFileName(java.lang.String scheme,
java.lang.String rootFile,
java.lang.String path,
FileType type)
getRootFile
public java.lang.String getRootFile()
- Returns the root file for this file.
- Returns:
- The root file name.
createName
public FileName createName(java.lang.String path,
FileType type)
- Factory method for creating name instances.
- Specified by:
createName
in class AbstractFileName
- Parameters:
path
- The file path.type
- The file type.
- Returns:
- The FileName.
appendRootUri
protected void appendRootUri(java.lang.StringBuilder buffer,
boolean addPassword)
- Builds the root URI for this file name.
- Specified by:
appendRootUri
in class AbstractFileName
- Parameters:
buffer
- A StringBuilder to use to construct the URI.addPassword
- true if the password should be added, false otherwise.