org.apache.commons.vfs.provider
Class LayeredFileName
java.lang.Object
org.apache.commons.vfs.provider.AbstractFileName
org.apache.commons.vfs.provider.LayeredFileName
- All Implemented Interfaces:
- java.lang.Comparable, FileName
public class LayeredFileName
- extends AbstractFileName
A file name for layered files.
- Version:
- $Revision: 804548 $ $Date: 2009-08-16 04:12:32 +0200 (So, 16. Aug 2009) $
- Author:
- Adam Murdoch
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 |
LayeredFileName
public LayeredFileName(java.lang.String scheme,
FileName outerUri,
java.lang.String path,
FileType type)
getOuterName
public FileName getOuterName()
- Returns the URI of the outer file.
- Returns:
- The FileName.
createName
public FileName createName(java.lang.String path,
FileType type)
- Create a FileName.
- Specified by:
createName
in class AbstractFileName
- Parameters:
path
- The file URI.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-2009 Apache Software Foundation. All Rights Reserved.