Class WindowsFileName
java.lang.Object
org.apache.commons.vfs2.provider.AbstractFileName
org.apache.commons.vfs2.provider.local.LocalFileName
org.apache.commons.vfs2.provider.local.WindowsFileName
- All Implemented Interfaces:
Comparable<FileName>
,FileName
A local file URI.
-
Field Summary
Fields inherited from interface org.apache.commons.vfs2.FileName
EMPTY_ARRAY, ROOT_PATH, SEPARATOR, SEPARATOR_CHAR
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
WindowsFileName
(String scheme, String rootFile, String path, FileType type) Constructs a new instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
appendRootUri
(StringBuilder buffer, boolean addPassword) Builds the root URI for this file name.createName
(String path, FileType type) Factory method for creating name instances.Methods inherited from class org.apache.commons.vfs2.provider.local.LocalFileName
getRootFile, toString
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
-
Constructor Details
-
WindowsFileName
Constructs a new instance.- Parameters:
scheme
- the scheme.rootFile
- the root file.path
- the absolute path, maybe empty or null.type
- the file type.
-
-
Method Details
-
appendRootUri
Builds the root URI for this file name.- Overrides:
appendRootUri
in classLocalFileName
- Parameters:
buffer
- A StringBuilder to use to construct the URI.addPassword
- true if the password should be added, false otherwise.
-
createName
Factory method for creating name instances.- Overrides:
createName
in classLocalFileName
- Parameters:
path
- The file path.type
- The file type.- Returns:
- The FileName.
-