Class TableExtractor


  • public class TableExtractor
    extends Object
    Class that extracts table data from a PDS4 Table product.
    Author:
    mcayanan
    • Constructor Detail

      • TableExtractor

        public TableExtractor()
        Constructor.
    • Method Detail

      • extractTable

        public void extractTable​(gov.nasa.pds.objectAccess.TableReader reader,
                                 boolean displayHeaders)
                          throws TransformException,
                                 com.opencsv.exceptions.CsvValidationException
        Extracts a table to the output file.
        Parameters:
        reader - the table reader to use for reading data
        Throws:
        TransformException
        com.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.