public class LocalFileName extends AbstractFileName
| Modifier | Constructor and Description |
|---|---|
protected |
LocalFileName(java.lang.String scheme,
java.lang.String rootFile,
java.lang.String path,
org.apache.commons.vfs2.FileType type) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
appendRootUri(java.lang.StringBuilder buffer,
boolean addPassword)
Builds the root URI for this file name.
|
org.apache.commons.vfs2.FileName |
createName(java.lang.String path,
org.apache.commons.vfs2.FileType type)
Factory method for creating name instances.
|
java.lang.String |
getFriendlyURI()
returns a "friendly path", this is a path without a password.
|
java.lang.String |
getRootFile()
Returns the root file for this file.
|
java.lang.String |
getURI()
Returns the absolute URI of the file.
|
java.lang.String |
toString()
Returns the decoded URI of the file.
|
checkName, compareTo, createURI, equals, getBaseName, getDepth, getExtension, getParent, getPath, getPathDecoded, getRelativeName, getRoot, getRootURI, getScheme, getType, getUriTrailer, hashCode, isAncestor, isDescendent, isDescendent, isFileprotected LocalFileName(java.lang.String scheme,
java.lang.String rootFile,
java.lang.String path,
org.apache.commons.vfs2.FileType type)
public java.lang.String getRootFile()
public org.apache.commons.vfs2.FileName createName(java.lang.String path,
org.apache.commons.vfs2.FileType type)
createName in class AbstractFileNamepath - The file path.type - The file type.public java.lang.String getURI()
getURI in interface org.apache.commons.vfs2.FileNamegetURI in class AbstractFileNamepublic java.lang.String getFriendlyURI()
getFriendlyURI in interface org.apache.commons.vfs2.FileNamegetFriendlyURI in class AbstractFileNamepublic java.lang.String toString()
toString in class AbstractFileNameprotected void appendRootUri(java.lang.StringBuilder buffer,
boolean addPassword)
appendRootUri in class AbstractFileNamebuffer - A StringBuilder to use to construct the URI.addPassword - true if the password should be added, false otherwise.