Klasse DeepCopier

java.lang.Object
de.zocher_regel.util.copy.AbstractCopier
de.zocher_regel.util.copy.DeepCopier
Alle implementierten Schnittstellen:
Runnable

public class DeepCopier extends AbstractCopier
Copy a directory with subdirectories to another location (e. g. USB-stick) Make the subdirectories flat.
  • Konstruktordetails

    • DeepCopier

      public DeepCopier(Path sourceDirPath, Path targetDirPath, FilenameFilter filenameFilter, FileFilter fileFilter, FileCompareFilter fileCompareFilter) throws UtilException
      Constructor
      Parameter:
      sourceDirPath - from which the files will be copied
      targetDirPath - to which the files will be copied
      filenameFilter - filters the files to be copied
      fileFilter - filters the files to be copied
      fileCompareFilter - decides whether the file is copied if the target file exists
      Löst aus:
      UtilException - if sourceDirPath or targetDirPath do not exist
  • Methodendetails

    • getTargetFilePath

      protected Path getTargetFilePath(File sourceFile)
      Beschreibung aus Klasse kopiert: AbstractCopier
      The name of the target file depends on that of the souce file.
      Angegeben von:
      getTargetFilePath in Klasse AbstractCopier
      Parameter:
      sourceFile - to be copied
      Gibt zurück:
      depending on deep or shallow copy, the path of the target file