Class WindowsFileName

All Implemented Interfaces:
Comparable<FileName>, FileName

public class WindowsFileName extends LocalFileName
A local file URI.
  • Constructor Details

    • WindowsFileName

      protected WindowsFileName(String scheme, String rootFile, String path, FileType type)
      Constructs a new instance.
      Parameters:
      scheme - the scheme.
      rootFile - the root file.
      path - the absolute path, maybe empty or null.
      type - the file type.
  • Method Details

    • appendRootUri

      protected void appendRootUri(StringBuilder buffer, boolean addPassword)
      Builds the root URI for this file name.
      Overrides:
      appendRootUri in class LocalFileName
      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)
      Factory method for creating name instances.
      Overrides:
      createName in class LocalFileName
      Parameters:
      path - The file path.
      type - The file type.
      Returns:
      The FileName.