org.apache.commons.vfs.provider
Class LayeredFileName

java.lang.Object
  extended by org.apache.commons.vfs.provider.AbstractFileName
      extended by 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: 480428 $ $Date: 2006-11-29 07:15:24 +0100 (Mi, 29 Nov 2006) $
Author:
Adam Murdoch

Field Summary
private  FileName outerUri
           
 
Fields inherited from interface org.apache.commons.vfs.FileName
ROOT_PATH, SEPARATOR, SEPARATOR_CHAR
 
Constructor Summary
LayeredFileName(java.lang.String scheme, FileName outerUri, java.lang.String path, FileType type)
           
 
Method Summary
protected  void appendRootUri(java.lang.StringBuffer 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.
 FileName getOuterName()
          Returns the URI of the outer file.
 
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, setType, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

outerUri

private final FileName outerUri
Constructor Detail

LayeredFileName

public LayeredFileName(java.lang.String scheme,
                       FileName outerUri,
                       java.lang.String path,
                       FileType type)
Method Detail

getOuterName

public FileName getOuterName()
Returns the URI of the outer file.


createName

public FileName createName(java.lang.String path,
                           FileType type)
Description copied from class: AbstractFileName
Factory method for creating name instances.

Specified by:
createName in class AbstractFileName

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