org.apache.commons.vfs.impl
Class VirtualFileName
java.lang.Object
org.apache.commons.vfs.provider.AbstractFileName
org.apache.commons.vfs.impl.VirtualFileName
- All Implemented Interfaces:
- java.lang.Comparable, FileName
public class VirtualFileName
- extends AbstractFileName
A simple Filename to hold the scheme for to be created virtual filesytsem.
- Version:
- $Revision: 480428 $ $Date: 2006-11-29 07:15:24 +0100 (Mi, 29. Nov 2006) $
- Author:
- imario@apache.org
Method Summary |
protected void |
appendRootUri(java.lang.StringBuffer buffer,
boolean addPassword)
Builds the root URI for this file name. |
FileName |
createName(java.lang.String absPath,
FileType type)
Factory method for creating name instances. |
Methods inherited from class org.apache.commons.vfs.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 |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
VirtualFileName
public VirtualFileName(java.lang.String scheme,
java.lang.String absPath,
FileType type)
createName
public FileName createName(java.lang.String absPath,
FileType type)
- Description copied from class:
AbstractFileName
- Factory method for creating name instances.
- Specified by:
createName
in class AbstractFileName
- Parameters:
absPath
- The absolute path.type
- The FileType.
- Returns:
- The FileName.
appendRootUri
protected void appendRootUri(java.lang.StringBuffer buffer,
boolean addPassword)
- 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 class AbstractFileName
- Parameters:
buffer
- A StringBuffer to use to construct the URI.addPassword
- true if the password should be added, false otherwise.
Copyright © 2002-2011 Apache Software Foundation. All Rights Reserved.