|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nasa.pds.transform.product.DefaultTransformer
public abstract class DefaultTransformer
Default implementation of the ProductTransformer interface.
Field Summary | |
---|---|
protected static Logger |
log
logger object. |
protected boolean |
overwriteOutput
Flag to indicate whether to overwrite an existing output file. |
Constructor Summary | |
---|---|
DefaultTransformer()
Default constructor. |
|
DefaultTransformer(boolean overwrite)
Constructor to set the flag to overwrite outputs. |
Method Summary | |
---|---|
abstract File |
transform(File target,
File outputDir,
String format)
Transform a single target. |
List<File> |
transform(List<File> targets,
File outputDir,
String format)
Transform multiple targets. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static Logger log
protected boolean overwriteOutput
Constructor Detail |
---|
public DefaultTransformer()
public DefaultTransformer(boolean overwrite)
overwrite
- Set to true to overwrite outputs, false otherwise.Method Detail |
---|
public List<File> transform(List<File> targets, File outputDir, String format) throws TransformException
ProductTransformer
transform
in interface ProductTransformer
targets
- a list of file specifications to the PDS labels.outputDir
- directory where the output file will be
written.format
- Valid format file type.
TransformException
public abstract File transform(File target, File outputDir, String format) throws TransformException
ProductTransformer
transform
in interface ProductTransformer
target
- file specification to the PDS label.outputDir
- directory where the output file will be
written.format
- Valid format file type.
TransformException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |