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
-
public class WindowsFileName extends LocalFileName
A local file URI.
-
-
Field Summary
-
Fields inherited from interface org.apache.commons.vfs2.FileName
ROOT_PATH, SEPARATOR, SEPARATOR_CHAR
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
WindowsFileName(java.lang.String scheme, java.lang.String rootFile, java.lang.String path, FileType type)
-
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)
Factory method for creating name instances.-
Methods inherited from class org.apache.commons.vfs2.provider.local.LocalFileName
getFriendlyURI, getRootFile, getURI, toString
-
Methods inherited from class org.apache.commons.vfs2.provider.AbstractFileName
checkName, compareTo, createURI, equals, getBaseName, getDepth, getExtension, getParent, getPath, getPathDecoded, getRelativeName, getRoot, getRootURI, getScheme, getType, getUriTrailer, hashCode, isAncestor, isDescendent, isDescendent, isFile
-
-
-
-
Constructor Detail
-
WindowsFileName
protected WindowsFileName(java.lang.String scheme, java.lang.String rootFile, java.lang.String path, FileType type)
-
-
Method Detail
-
createName
public FileName createName(java.lang.String path, FileType type)
Factory method for creating name instances.- Overrides:
createName
in classLocalFileName
- Parameters:
path
- The file path.type
- The file type.- Returns:
- The FileName.
-
appendRootUri
protected void appendRootUri(java.lang.StringBuilder buffer, boolean addPassword)
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.
-
-