Class ResourceFileName

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

public class ResourceFileName extends AbstractFileName
A resource file URI.
  • Constructor Details

  • Method Details

    • createName

      public FileName createName(String path, FileType type)
      Factory method for creating name instances.
      Specified by:
      createName in class AbstractFileName
      Parameters:
      path - The file path.
      type - The file type.
      Returns:
      The FileName.
    • toString

      public String toString()
      Returns the decoded URI of the file.
      Overrides:
      toString in class AbstractFileName
      Returns:
      the FileName as a URI.
    • appendRootUri

      protected void appendRootUri(StringBuilder buffer, boolean addPassword)
      Builds the root URI for this file name.
      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.
    • getRootURI

      public String getRootURI()
      Description copied from class: AbstractFileName
      Returns the root URI of the file system this file belongs to.
      Specified by:
      getRootURI in interface FileName
      Overrides:
      getRootURI in class AbstractFileName
      Returns:
      The URI of the root.