public class Pds4TableTransformer extends DefaultTransformer
Modifier and Type | Field and Description |
---|---|
protected URL |
dataFileBasePath |
protected boolean |
displayHeaders |
protected TableExtractor |
tableExtractor |
appendIndexToOutputFile, log, overwriteOutput
Constructor and Description |
---|
Pds4TableTransformer(boolean overwrite)
Constructor to set the flag to overwrite outputs.
|
Modifier and Type | Method and Description |
---|---|
protected Object |
process(URL target,
URL dataFile,
File outputFile,
gov.nasa.pds.objectAccess.ObjectProvider objectAccess,
gov.nasa.arc.pds.xml.generated.FileAreaObservational fileArea,
int index) |
void |
setDataFileBasePath(String base) |
void |
setDisplayHeaders(boolean flag) |
List<File> |
transform(URL url,
File outputDir,
String format,
String dataFileName,
int index) |
List<File> |
transformAll(URL url,
File outputDir,
String format) |
transform, transform, transform, transform, transformAll, transformAll
protected URL dataFileBasePath
protected TableExtractor tableExtractor
protected boolean displayHeaders
public Pds4TableTransformer(boolean overwrite)
overwrite
- Set to true to overwrite outputs, false otherwise.public List<File> transform(URL url, File outputDir, String format, String dataFileName, int index) throws TransformException, URISyntaxException, Exception
transform
in interface ProductTransformer
transform
in class DefaultTransformer
TransformException
URISyntaxException
Exception
public List<File> transformAll(URL url, File outputDir, String format) throws TransformException
transformAll
in interface ProductTransformer
transformAll
in class DefaultTransformer
TransformException
protected Object process(URL target, URL dataFile, File outputFile, gov.nasa.pds.objectAccess.ObjectProvider objectAccess, gov.nasa.arc.pds.xml.generated.FileAreaObservational fileArea, int index) throws TransformException
TransformException
public void setDataFileBasePath(String base) throws MalformedURLException
MalformedURLException
public void setDisplayHeaders(boolean flag)
Copyright © 2010–2018 Planetary Data System. All rights reserved.