Class LayeredFileName

java.lang.Object
org.apache.commons.vfs2.provider.AbstractFileName
org.apache.commons.vfs2.provider.LayeredFileName
All Implemented Interfaces:
Comparable<FileName>, FileName

public class LayeredFileName extends AbstractFileName
A file name for layered files.
  • Field Details

  • Constructor Details

    • LayeredFileName

      public LayeredFileName(String scheme, FileName outerUri, String path, FileType type)
      Constructs a new instance.
      Parameters:
      scheme - The scheme.
      outerUri - outer file name.
      path - the absolute path, maybe empty or null.
      type - the file type.
  • Method Details

    • appendRootUri

      protected void appendRootUri(StringBuilder 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 StringBuilder to use to construct the URI.
      addPassword - true if the password should be added, false otherwise.
    • createName

      public FileName createName(String path, FileType type)
      Creates a FileName.
      Specified by:
      createName in class AbstractFileName
      Parameters:
      path - The file URI.
      type - The FileType.
      Returns:
      The FileName.
    • getOuterName

      Returns the URI of the outer file.
      Returns:
      The FileName.