public class RingsDecryptionProcessor extends SimpleCommandProcessor
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
OUTPUT_DIR_NAME |
command, useOutputFileName
Constructor and Description |
---|
RingsDecryptionProcessor() |
Modifier and Type | Method and Description |
---|---|
void |
configure(java.util.Properties props)
This particular Processor doesn't require any configuration since its
purpose is so specific.
|
java.lang.String |
getDirName()
Get the name of the directory where the output of the processor is
placed.
|
java.lang.String |
getOutputFileName(java.lang.String inputFileName)
Get the name that will be assigned to an output file, given the input
file name.
|
protected void |
processFileList(java.util.List<java.io.File> files,
java.io.File out)
Run the given command on the list of provided files.
|
boolean |
verifyConfiguration()
Verify that the Processor has been properly configured.
|
process, process, validateCommand
public static final java.lang.String OUTPUT_DIR_NAME
public java.lang.String getDirName()
Processor
getDirName
in interface Processor
getDirName
in class SimpleCommandProcessor
gov.nasa.pds.report.processing.Processor.getDirName()
public void configure(java.util.Properties props)
configure
in interface Processor
configure
in class SimpleCommandProcessor
props
- A Properties
containing the needed
configuration values.gov.nasa.pds.report.processing.Processor.configure()
public java.lang.String getOutputFileName(java.lang.String inputFileName)
Processor
getOutputFileName
in interface Processor
getOutputFileName
in class SimpleCommandProcessor
inputFileName
- The name of the input fileTODO: Make this more robust or figure out a better way to determine how
files will be renamed. Perhaps include something to specify this in
configuration. For example, we could specify the gunzip renaming with a
config value of -<.gz>+<>. The value to untar a text file might
look like -+.
public boolean verifyConfiguration()
Processor
verifyConfiguration
in interface Processor
verifyConfiguration
in class SimpleCommandProcessor
gov.nasa.pds.report.processing.Processor.verifyConfiguration()
protected void processFileList(java.util.List<java.io.File> files, java.io.File out) throws ProcessingException
SimpleCommandProcessor
processFileList
in class SimpleCommandProcessor
files
- A List
of File
s to processout
- A File object pointing to the directory
where output is placedProcessingException
- If an error occursCopyright © 2010-2018 Planetary Data System. All Rights Reserved.