Class VirtualFileName

  • All Implemented Interfaces:
    java.lang.Comparable<FileName>, FileName

    public class VirtualFileName
    extends AbstractFileName
    A simple Filename to hold the scheme for to be created virtual filesytsem.
    • Constructor Detail

      • VirtualFileName

        public VirtualFileName​(java.lang.String scheme,
                               java.lang.String absPath,
                               FileType type)
    • Method Detail

      • createName

        public FileName createName​(java.lang.String absPath,
                                   FileType type)
        Description copied from class: AbstractFileName
        Factory method for creating name instances.
        Specified by:
        createName in class AbstractFileName
        Parameters:
        absPath - The absolute path.
        type - The FileType.
        Returns:
        The FileName.
      • appendRootUri

        protected void appendRootUri​(java.lang.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.