public class LocalFileName extends AbstractFileName
ROOT_PATH, SEPARATOR, SEPARATOR_CHAR| Modifier | Constructor and Description |
|---|---|
protected |
LocalFileName(String scheme,
String rootFile,
String path,
FileType type) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
appendRootUri(StringBuilder buffer,
boolean addPassword)
Builds the root URI for this file name.
|
FileName |
createName(String path,
FileType type)
Factory method for creating name instances.
|
String |
getFriendlyURI()
returns a "friendly path", this is a path without a password.
|
String |
getRootFile()
Returns the root file for this file.
|
String |
getURI()
Returns the absolute URI of the file.
|
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, isFilepublic String getRootFile()
public FileName createName(String path, FileType type)
createName in class AbstractFileNamepath - The file path.type - The file type.public String getURI()
getURI in interface FileNamegetURI in class AbstractFileNamepublic String getFriendlyURI()
getFriendlyURI in interface FileNamegetFriendlyURI in class AbstractFileNamepublic String toString()
toString in class AbstractFileNameprotected void appendRootUri(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.Copyright © 2002–2016 The Apache Software Foundation. All rights reserved.