public class ResourceFileName extends AbstractFileName
EMPTY_ARRAY, ROOT_PATH, SEPARATOR, SEPARATOR_CHAR
Modifier | Constructor and Description |
---|---|
protected |
ResourceFileName(String scheme,
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 |
getRootURI()
Returns the root URI of the file system this file belongs to.
|
String |
toString()
Returns the decoded URI of the file.
|
checkName, compareTo, createURI, equals, getBaseName, getDepth, getExtension, getFriendlyURI, getParent, getPath, getPathDecoded, getRelativeName, getRoot, getScheme, getType, getURI, getUriTrailer, hashCode, isAncestor, isDescendent, isDescendent, isFile
public FileName createName(String path, FileType type)
createName
in class AbstractFileName
path
- The file path.type
- The file type.public String toString()
toString
in class AbstractFileName
protected void appendRootUri(StringBuilder buffer, boolean addPassword)
appendRootUri
in class AbstractFileName
buffer
- A StringBuilder to use to construct the URI.addPassword
- true if the password should be added, false otherwise.public String getRootURI()
AbstractFileName
getRootURI
in interface FileName
getRootURI
in class AbstractFileName
Copyright © 2002–2020 The Apache Software Foundation. All rights reserved.