public class TextConfigFileWriter extends DynamicConfigFileWriter
SciPgeConfigFileWriter
which takes a template with envReplace
metadata that gets dynamically filled out and written to a file.Constructor and Description |
---|
TextConfigFileWriter() |
Modifier and Type | Method and Description |
---|---|
File |
generateFile(String filePath,
Metadata metadata,
Logger logger,
Object... customArgs)
Generates a config file for CAS-PGE to use as PGE input with the given
default logger.
|
protected File |
writeTextFile(String file,
String text) |
createConfigFile
public File generateFile(String filePath, Metadata metadata, Logger logger, Object... customArgs) 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.customArgs
- Any custom parameters needed for the writer to write the input
config file.IOException
protected File writeTextFile(String file, String text) throws IOException
IOException
Copyright © 1999–2017 Apache OODT. All rights reserved.