public class MetadataKeyReplacerTemplateWriter extends DynamicConfigFileWriter
DynamicConfigFileWriter.createConfigFile(String, Metadata, Object...)
. The 1st varargs
argument to DynamicConfigFileWriter.createConfigFile(String, Metadata, Object...)
is the
template file to use as a basis.Constructor and Description |
---|
MetadataKeyReplacerTemplateWriter() |
Modifier and Type | Method and Description |
---|---|
File |
generateFile(String filePath,
Metadata metadata,
Logger logger,
Object... args)
Generates a config file for CAS-PGE to use as PGE input with the given
default logger.
|
createConfigFile
public File generateFile(String filePath, Metadata metadata, Logger logger, Object... args) throws IOException
DynamicConfigFileWriter
generateFile
in class DynamicConfigFileWriter
filePath
- The name of the config file to generate.metadata
- Input CAS-PGE metadata.logger
- The logger to write any status information to.args
- Any custom parameters needed for the writer to write the input
config file.IOException
Copyright © 1999–2017 Apache OODT. All rights reserved.