gov.nasa.pds.transform.product
Class Pds4TableTransformer

java.lang.Object
  extended by gov.nasa.pds.transform.product.DefaultTransformer
      extended by gov.nasa.pds.transform.product.Pds4TableTransformer
All Implemented Interfaces:
ProductTransformer

public class Pds4TableTransformer
extends DefaultTransformer

Class that transforms PDS4 tables into CSV formatted-files.

Author:
mcayanan

Field Summary
 
Fields inherited from class gov.nasa.pds.transform.product.DefaultTransformer
log, overwriteOutput
 
Constructor Summary
Pds4TableTransformer(boolean overwrite)
          Constructor to set the flag to overwrite outputs.
 
Method Summary
 File transform(File target, File outputDir, String format)
          Transform the given label.
 
Methods inherited from class gov.nasa.pds.transform.product.DefaultTransformer
transform
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Pds4TableTransformer

public Pds4TableTransformer(boolean overwrite)
Constructor to set the flag to overwrite outputs.

Parameters:
overwrite - Set to true to overwrite outputs, false otherwise.
Method Detail

transform

public File transform(File target,
                      File outputDir,
                      String format)
               throws TransformException
Transform the given label.

Specified by:
transform in interface ProductTransformer
Specified by:
transform in class DefaultTransformer
Parameters:
target - The PDS4 xml label file.
outputDir - The output directory.
format - the format type.
Throws:
TransformException - If an error occurred during transformation.
gov.nasa.pds.objectAccess.ParseException - If there were errors parsing the given label.


Copyright © 2010–2014 Planetary Data System. All rights reserved.