Class LocalFileName

    • Constructor Detail

      • LocalFileName

        protected LocalFileName​(java.lang.String scheme,
                                java.lang.String rootFile,
                                java.lang.String path,
                                FileType type)
    • Method Detail

      • getRootFile

        public java.lang.String getRootFile()
        Returns the root file for this file.
        Returns:
        The root file name.
      • createName

        public FileName createName​(java.lang.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.
      • getURI

        public java.lang.String getURI()
        Returns the absolute URI of the file.
        Specified by:
        getURI in interface FileName
        Overrides:
        getURI in class AbstractFileName
        Returns:
        The absolute URI of the file.
      • toString

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

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