Package gov.nasa.pds.transform.table
Class TableExtractor
- java.lang.Object
-
- gov.nasa.pds.transform.table.TableExtractor
-
public class TableExtractor extends Object
Class that extracts table data from a PDS4 Table product.- Author:
- mcayanan
-
-
Constructor Summary
Constructors Constructor Description TableExtractor()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidextractTable(gov.nasa.pds.objectAccess.TableReader reader, boolean displayHeaders)Extracts a table to the output file.voidsetFormat(String format)Sets the output format.voidsetOutput(PrintWriter writer)Sets the output writer.
-
-
-
Method Detail
-
extractTable
public void extractTable(gov.nasa.pds.objectAccess.TableReader reader, boolean displayHeaders) throws TransformException, com.opencsv.exceptions.CsvValidationExceptionExtracts a table to the output file.- Parameters:
reader- the table reader to use for reading data- Throws:
TransformExceptioncom.opencsv.exceptions.CsvValidationException
-
setFormat
public void setFormat(String format)
Sets the output format.- Parameters:
format- The output format.
-
setOutput
public void setOutput(PrintWriter writer)
Sets the output writer.- Parameters:
writer- The PrintWriter.
-
-