Class VirtualFileName

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

public class VirtualFileName extends AbstractFileName
A simple file name to hold the scheme for to be created virtual file system.
  • Constructor Details

    • VirtualFileName

      public VirtualFileName(String scheme, String absolutePath, FileType type)
      Constructs a new instance.
      Parameters:
      scheme - The scheme.
      absolutePath - 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 absolutePath, FileType type)
      Description copied from class: AbstractFileName
      Factory method for creating name instances.
      Specified by:
      createName in class AbstractFileName
      Parameters:
      absolutePath - The absolute path.
      type - The FileType.
      Returns:
      The FileName.