Package gov.nasa.pds.transform.product
Class StylesheetTransformer
- java.lang.Object
-
- gov.nasa.pds.transform.product.DefaultTransformer
-
- gov.nasa.pds.transform.product.StylesheetTransformer
-
- All Implemented Interfaces:
ProductTransformer
public class StylesheetTransformer extends DefaultTransformer
Class that performs transformations of PDS4 data product labels into other formats defined by a stylesheet.- Author:
- mcayanan
-
-
Field Summary
-
Fields inherited from class gov.nasa.pds.transform.product.DefaultTransformer
appendIndexToOutputFile, log, overwriteOutput
-
-
Constructor Summary
Constructors Constructor Description StylesheetTransformer(boolean overwrite)Constructor to set the flag to overwrite outputs.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<File>transform(URL url, File outputDir, String format, String dataFile, int index)List<File>transformAll(URL url, File outputDir, String format)-
Methods inherited from class gov.nasa.pds.transform.product.DefaultTransformer
transform, transform, transform, transform, transformAll, transformAll
-
-
-
-
Method Detail
-
transform
public List<File> transform(URL url, File outputDir, String format, String dataFile, int index) throws TransformException, URISyntaxException, Exception
- Specified by:
transformin interfaceProductTransformer- Specified by:
transformin classDefaultTransformer- Throws:
TransformExceptionURISyntaxExceptionException
-
transformAll
public List<File> transformAll(URL url, File outputDir, String format) throws TransformException, URISyntaxException, Exception
- Specified by:
transformAllin interfaceProductTransformer- Specified by:
transformAllin classDefaultTransformer- Throws:
TransformExceptionURISyntaxExceptionException
-
-