public interface Processor
Modifier and Type | Method and Description |
---|---|
void |
configure(java.util.Properties props)
Configure the Processor, providing the details needed to process logs.
|
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.
|
void |
process(java.io.File in,
java.io.File out)
Process the files in the input directory and place them in the output
directory.
|
void |
process(java.util.List<java.io.File> in,
java.io.File out)
Process the files in the given list and place them in the output
directory.
|
boolean |
verifyConfiguration()
Verify that the Processor has been properly configured.
|
void process(java.io.File in, java.io.File out) throws ProcessingException
in
- The directory containing the input filesout
- The directory where output is placedProcessingException
- If an error occurs.void process(java.util.List<java.io.File> in, java.io.File out) throws ProcessingException
in
- A List
of File
objects
pointing to files that will be processedout
- The directory where output is placedProcessingException
- If an error occurs.java.lang.String getDirName()
java.lang.String getOutputFileName(java.lang.String inputFileName)
inputFileName
- The name of the input filevoid configure(java.util.Properties props) throws ProcessingException
props
- A Properties
containing the needed
configuration values.ProcessingException
- If the provided Properties do not contain
the needed configuration values.boolean verifyConfiguration()
Copyright © 2010-2018 Planetary Data System. All Rights Reserved.