java.lang.Object
de.zocher_regel.util.copy.AbstractCopier
de.zocher_regel.util.copy.ShallowCopier
- Alle implementierten Schnittstellen:
Runnable
Copy a directory whith 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
KonstruktorenKonstruktorBeschreibungShallowCopier(Path sourceDirPath, Path targetDirPath, FilenameFilter filenameFilter, FileFilter fileFilter, FileCompareFilter fileCompareFilter) Constructor -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected PathgetTargetFilePath(File sourceFile) The intermediate directories are omitted.Von Klasse geerbte Methoden de.zocher_regel.util.copy.AbstractCopier
appendQualFileName, copy, run, setFromTxt, setToTxt, sourceTargetOverlap
-
Konstruktordetails
-
ShallowCopier
public ShallowCopier(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
The intermediate directories are omitted.- Angegeben von:
getTargetFilePathin KlasseAbstractCopier- Parameter:
sourceFile- the file to be copied- Gibt zurück:
- the path of target file, the directory tree of the sourceFile is flattened.
-