java.lang.Object
de.zocher_regel.util.copy.AbstractCopier
de.zocher_regel.util.copy.DeepCopier
- Alle implementierten Schnittstellen:
Runnable
Copy a directory with subdirectories to another location (e. g. USB-stick)
Make the subdirectories flat.
-
Feldübersicht
Von Klasse geerbte Felder de.zocher_regel.util.copy.AbstractCopier
count, fileCompareFilter, fileFilter, filenameFilter, sourceDirPath, targetDirPath -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungDeepCopier(Path sourceDirPath, Path targetDirPath, FilenameFilter filenameFilter, FileFilter fileFilter, FileCompareFilter fileCompareFilter) Constructor -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected PathgetTargetFilePath(File sourceFile) The name of the target file depends on that of the souce file.Von Klasse geerbte Methoden de.zocher_regel.util.copy.AbstractCopier
appendQualFileName, copy, run, setFromTxt, setToTxt, sourceTargetOverlap
-
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 copiedtargetDirPath- to which the files will be copiedfilenameFilter- filters the files to be copiedfileFilter- filters the files to be copiedfileCompareFilter- decides whether the file is copied if the target file exists- Löst aus:
UtilException- if sourceDirPath or targetDirPath do not exist
-
-
Methodendetails
-
getTargetFilePath
Beschreibung aus Klasse kopiert:AbstractCopierThe name of the target file depends on that of the souce file.- Angegeben von:
getTargetFilePathin KlasseAbstractCopier- Parameter:
sourceFile- to be copied- Gibt zurück:
- depending on deep or shallow copy, the path of the target file
-