Package org.apache.commons.vfs2.provider
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 SummaryFieldsModifier and TypeFieldDescriptionstatic final charThe layer separator character ''!''.Fields inherited from interface org.apache.commons.vfs2.FileNameEMPTY_ARRAY, ROOT_PATH, SEPARATOR, SEPARATOR_CHAR
- 
Constructor SummaryConstructorsConstructorDescriptionLayeredFileName(String scheme, FileName outerUri, String path, FileType type) Constructs a new instance.
- 
Method SummaryModifier 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 org.apache.commons.vfs2.provider.AbstractFileNamecheckName, compareTo, createURI, equals, getBaseName, getDepth, getExtension, getFriendlyURI, getParent, getPath, getPathDecoded, getRelativeName, getRoot, getRootURI, getScheme, getType, getURI, getUriTrailer, hashCode, isAncestor, isDescendent, isDescendent, isFile, toString
- 
Field Details- 
LAYER_SEPARATORThe layer separator character ''!''.- Since:
- 2.10.0
- See Also:
 
 
- 
- 
Constructor Details- 
LayeredFileNameConstructs a new instance.- Parameters:
- scheme- The scheme.
- outerUri- outer file name.
- path- the absolute path, maybe empty or null.
- type- the file type.
 
 
- 
- 
Method Details- 
appendRootUriDescription 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 class- AbstractFileName
- Parameters:
- buffer- A StringBuilder to use to construct the URI.
- addPassword- true if the password should be added, false otherwise.
 
- 
createNameCreates a FileName.- Specified by:
- createNamein class- AbstractFileName
- Parameters:
- path- The file URI.
- type- The FileType.
- Returns:
- The FileName.
 
- 
getOuterNameReturns the URI of the outer file.- Returns:
- The FileName.
 
 
-