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 FileName
EMPTY_ARRAY, ROOT_PATH, SEPARATOR, SEPARATOR_CHAR -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedWindowsFileName(String scheme, String rootFile, 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) Factory method for creating name instances.Methods inherited from class LocalFileName
getRootFile, toStringMethods 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
-
Constructor Details
-
WindowsFileName
-
-
Method Details
-
appendRootUri
Builds the root URI for this file name.- Overrides:
appendRootUriin 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:
createNamein classLocalFileName- Parameters:
path- The file path.type- The file type.- Returns:
- The FileName.
-