org.apache.commons.vfs2.provider.local
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
public class WindowsFileName
- extends LocalFileName
A local file URI.
- Author:
- Commons VFS team
| 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, toString |
WindowsFileName
protected WindowsFileName(String scheme,
String rootFile,
String path,
FileType type)
createName
public FileName createName(String path,
FileType type)
- Factory method for creating name instances.
- Overrides:
createName in class LocalFileName
- Parameters:
path - The file path.type - The file type.
- Returns:
- The FileName.
appendRootUri
protected void appendRootUri(StringBuilder buffer,
boolean addPassword)
- Builds the root URI for this file name.
- Overrides:
appendRootUri in class LocalFileName
- Parameters:
buffer - A StringBuilder to use to construct the URI.addPassword - true if the password should be added, false otherwise.
Copyright © 2002-2011 The Apache Software Foundation. All Rights Reserved.