public class GeneratorXMLSpec extends AbstractApplication
Modifier and Type | Class and Description |
---|---|
static class |
GeneratorXMLSpec.Parameterizer
Parameterization class.
|
Modifier and Type | Field and Description |
---|---|
private GeneratorXMLDatabaseConnection |
generator
The original data source.
|
static String |
LINE_SEPARATOR
Line separator for output
|
private static Logging |
logger
The logger for this class.
|
private File |
outputFile
Output file.
|
INFORMATION, INPUT_ID, OUTPUT_ID, STATIC_LOGGER
Constructor and Description |
---|
GeneratorXMLSpec(boolean verbose,
File output,
GeneratorXMLDatabaseConnection generator)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] args)
Main method to run this application.
|
void |
run()
Runs the wrapper with the specified arguments.
|
void |
writeClusters(OutputStreamWriter outStream,
MultipleObjectsBundle data)
Write the resulting clusters to an output stream.
|
isVerbose, printErrorMessage, runCLIApplication, usage
private static final Logging logger
public static final String LINE_SEPARATOR
private File outputFile
private GeneratorXMLDatabaseConnection generator
public GeneratorXMLSpec(boolean verbose, File output, GeneratorXMLDatabaseConnection generator)
verbose
- Verbose flagoutput
- Output filegenerator
- GeneratorXMLDatabaseConnectionpublic void run() throws UnableToComplyException
run
in class AbstractApplication
UnableToComplyException
- if
an error occurs during running the applicationpublic void writeClusters(OutputStreamWriter outStream, MultipleObjectsBundle data) throws IOException
outStream
- output streamdata
- Generated dataIOException
- thrown on write errorspublic static void main(String[] args)
args
- the arguments to run this application