public class Anonymize extends CopyFilesNaming<AnonymizeSharedState>
001, 002
etc. in the same order they are inputted.
No shuffling occurs.
Constructor and Description |
---|
Anonymize() |
Modifier and Type | Method and Description |
---|---|
AnonymizeSharedState |
beforeCopying(Path destinationDirectory,
List<FileWithDirectoryInput> inputs)
To be called once before any calls to
CopyFilesNaming.destinationPath(File,
DirectoryWithPrefix, int, CopyContext) . |
Optional<Path> |
destinationPathRelative(File file,
DirectoryWithPrefix outputTarget,
int iter,
CopyContext<AnonymizeSharedState> context)
Calculates the relative-output path (to be appended to destDir)
|
destinationPath
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
public AnonymizeSharedState beforeCopying(Path destinationDirectory, List<FileWithDirectoryInput> inputs)
CopyFilesNaming
CopyFilesNaming.destinationPath(File,
DirectoryWithPrefix, int, CopyContext)
.beforeCopying
in class CopyFilesNaming<AnonymizeSharedState>
destinationDirectory
- the directory to which files are copied.inputs
- the total number of files to copy.public Optional<Path> destinationPathRelative(File file, DirectoryWithPrefix outputTarget, int iter, CopyContext<AnonymizeSharedState> context) throws OutputWriteFailedException
CopyFilesNaming
destinationPathRelative
in class CopyFilesNaming<AnonymizeSharedState>
file
- file to be copiedoutputTarget
- the directory and prefix associated with the file for outputtingiter
- an increasing sequence of numbers for each file beginning at 0context
- the context for the copyingOutputWriteFailedException
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.