Package org.apache.commons.vfs2.impl
Class VirtualFileName
java.lang.Object
org.apache.commons.vfs2.provider.AbstractFileName
org.apache.commons.vfs2.impl.VirtualFileName
- All Implemented Interfaces:
Comparable<FileName>
,FileName
A simple Filename to hold the scheme for to be created virtual filesytsem.
-
Field Summary
Fields inherited from interface org.apache.commons.vfs2.FileName
ROOT_PATH, SEPARATOR, SEPARATOR_CHAR
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
appendRootUri
(StringBuilder buffer, boolean addPassword) Builds the root URI for this file name.createName
(String absPath, FileType type) Factory method for creating name instances.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
-
Constructor Details
-
VirtualFileName
-
-
Method Details
-
createName
Description copied from class:AbstractFileName
Factory method for creating name instances.- Specified by:
createName
in classAbstractFileName
- Parameters:
absPath
- The absolute path.type
- The FileType.- Returns:
- The FileName.
-
appendRootUri
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.
-