Package org.apache.commons.vfs2.provider
Class LayeredFileName
- java.lang.Object
-
- org.apache.commons.vfs2.provider.AbstractFileName
-
- org.apache.commons.vfs2.provider.LayeredFileName
-
public class LayeredFileName extends AbstractFileName
A file name for layered files.
-
-
Field Summary
Fields Modifier and Type Field Description static char
LAYER_SEPARATOR
The layer separator character '33'.-
Fields inherited from interface org.apache.commons.vfs2.FileName
EMPTY_ARRAY, ROOT_PATH, SEPARATOR, SEPARATOR_CHAR
-
-
Constructor Summary
Constructors Constructor Description LayeredFileName(java.lang.String scheme, FileName outerUri, java.lang.String path, FileType type)
Constructs a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
appendRootUri(java.lang.StringBuilder buffer, boolean addPassword)
Builds the root URI for this file name.FileName
createName(java.lang.String path, FileType type)
Creates a FileName.FileName
getOuterName()
Returns the URI of the outer file.-
Methods inherited from class org.apache.commons.vfs2.provider.AbstractFileName
checkName, compareTo, createURI, equals, getBaseName, getDepth, getExtension, getFriendlyURI, getParent, getPath, getPathDecoded, getRelativeName, getRoot, getRootURI, getScheme, getType, getURI, getUriTrailer, hashCode, isAncestor, isDescendent, isDescendent, isFile, toString
-
-
-
-
Field Detail
-
LAYER_SEPARATOR
public static final char LAYER_SEPARATOR
The layer separator character '33'.- Since:
- 2.10.0
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
LayeredFileName
public LayeredFileName(java.lang.String scheme, FileName outerUri, java.lang.String path, FileType type)
Constructs a new instance.- Parameters:
scheme
- The scheme.outerUri
- outer file name.path
- the absolute path, maybe empty or null.type
- the file type.
-
-
Method Detail
-
appendRootUri
protected void appendRootUri(java.lang.StringBuilder buffer, boolean addPassword)
Description copied from class:AbstractFileName
Builds the root URI for this file name. Note that the root URI must not end with a separator character.- Specified by:
appendRootUri
in classAbstractFileName
- Parameters:
buffer
- A StringBuilder to use to construct the URI.addPassword
- true if the password should be added, false otherwise.
-
createName
public FileName createName(java.lang.String path, FileType type)
Creates a FileName.- Specified by:
createName
in classAbstractFileName
- Parameters:
path
- The file URI.type
- The FileType.- Returns:
- The FileName.
-
getOuterName
public FileName getOuterName()
Returns the URI of the outer file.- Returns:
- The FileName.
-
-