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