Class LayeredFileName
java.lang.Object
org.apache.commons.vfs2.provider.AbstractFileName
org.apache.commons.vfs2.provider.LayeredFileName
- All Implemented Interfaces:
Comparable<FileName>, FileName
A file name for layered files.
-
Field Summary
FieldsFields inherited from interface FileName
EMPTY_ARRAY, ROOT_PATH, SEPARATOR, SEPARATOR_CHAR -
Constructor Summary
ConstructorsConstructorDescriptionLayeredFileName(String scheme, FileName outerUri, String path, FileType type) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidappendRootUri(StringBuilder buffer, boolean addPassword) Builds the root URI for this file name.createName(String path, FileType type) Creates a FileName.Returns the URI of the outer file.Methods inherited from class AbstractFileName
checkName, compareTo, createURI, equals, getBaseName, getDepth, getExtension, getFriendlyURI, getParent, getPath, getPathDecoded, getRelativeName, getRoot, getRootURI, getScheme, getType, getURI, getUriTrailer, hashCode, isAncestor, isDescendent, isDescendent, isFile, setType, toString
-
Field Details
-
outerUri
-
-
Constructor Details
-
LayeredFileName
-
-
Method Details
-
getOuterName
-
createName
Creates a FileName.- Specified by:
createNamein classAbstractFileName- Parameters:
path- The file URI.type- The FileType.- Returns:
- The FileName.
-
appendRootUri
Description copied from class:AbstractFileNameBuilds the root URI for this file name. Note that the root URI must not end with a separator character.- Specified by:
appendRootUriin classAbstractFileName- Parameters:
buffer- A StringBuilder to use to construct the URI.addPassword- true if the password should be added, false otherwise.
-