public class Pds3TableTransformer extends DefaultTransformer
appendIndexToOutputFile, log, overwriteOutput
Constructor and Description |
---|
Pds3TableTransformer(boolean overwrite) |
Modifier and Type | Method and Description |
---|---|
void |
setIncludePaths(java.util.List<java.lang.String> i)
Set the paths to search for files referenced by pointers.
|
java.util.List<java.io.File> |
transform(java.io.File target,
java.io.File outputDir,
java.lang.String format,
java.lang.String dataFile,
int index)
Transform a single target.
|
java.util.List<java.io.File> |
transform(java.net.URL url,
java.io.File outputDir,
java.lang.String format,
java.lang.String dataFile,
int index) |
java.util.List<java.io.File> |
transformAll(java.net.URL url,
java.io.File outputDir,
java.lang.String format) |
transform, transform, transform, transformAll, transformAll
public java.util.List<java.io.File> transform(java.io.File target, java.io.File outputDir, java.lang.String format, java.lang.String dataFile, int index) throws TransformException
ProductTransformer
transform
in interface ProductTransformer
transform
in class DefaultTransformer
target
- file specification to the PDS label.outputDir
- directory where the output file will be written.format
- Valid format file type.dataFile
- Tells the tool which data file to transform.
If this argument is an empty string, the default is to transform
the first data file found in the label.index
- The index of the data. This tells the tool which image
or table to transform if there are multiple images/tables within a
single data file.TransformException
- If an error occurred during the
transformation process.public java.util.List<java.io.File> transform(java.net.URL url, java.io.File outputDir, java.lang.String format, java.lang.String dataFile, int index) throws TransformException, java.net.URISyntaxException, java.lang.Exception
transform
in interface ProductTransformer
transform
in class DefaultTransformer
TransformException
java.net.URISyntaxException
java.lang.Exception
public java.util.List<java.io.File> transformAll(java.net.URL url, java.io.File outputDir, java.lang.String format) throws TransformException, java.net.URISyntaxException, java.lang.Exception
transformAll
in interface ProductTransformer
transformAll
in class DefaultTransformer
TransformException
java.net.URISyntaxException
java.lang.Exception
public void setIncludePaths(java.util.List<java.lang.String> i)
Default is to always look first in the same directory as the label, then search specified directories.
i
- List of pathsCopyright © 2010-2019 Planetary Data System. All Rights Reserved.