Class NormalizedPath


public class NormalizedPath extends FileNamerIndependent
Uses the normalized path (always with forward slashes) of each file as it's descriptive-name
Author:
Owen Feehan
  • Constructor Details

    • NormalizedPath

      public NormalizedPath()
  • Method Details

    • deriveName

      protected String deriveName(File file, Optional<Path> inputDirectory, int index) throws CreateException
      Description copied from class: FileNamerIndependent
      Derives a unique name for this file.
      Specified by:
      deriveName in class FileNamerIndependent
      Parameters:
      file - the file.
      inputDirectory - the root input-directory used in naming.
      index - a unique incrementing number, beginning at zero, passed to each call to this method within a collection.
      Returns:
      the derived unique name.
      Throws:
      CreateException - if unable to create the unique name.