Package gov.nasa.pds.objectAccess
Class ExporterFactory
java.lang.Object
gov.nasa.pds.objectAccess.ExporterFactory
public class ExporterFactory extends Object
Factory pattern class to create specific object exporters.
- Author:
- dcberrio
- 
Method SummaryModifier and Type Method Description static TwoDImageExporterget2DImageExporter(FileAreaObservational fileArea, ObjectProvider provider)Gets an instance of a Array2DImage exporter.static TwoDImageExporterget2DImageExporter(File label, int fileAreaIndex)Gets an instance of a Array2DImage exporter.static TwoDImageExporterget2DImageExporter(URL label, int fileAreaIndex)Gets an instance of a Array2DImage exporter.static ThreeDImageExporterget3DImageExporter(FileAreaObservational fileArea, ObjectProvider provider)Gets an instance of an Array3DImage exporter.static ThreeDImageExporterget3DImageExporter(File label, int fileAreaIndex)Gets an instance of an Array3DImage exporter.static ThreeDImageExporterget3DImageExporter(URL label, int fileAreaIndex)Gets an instance of an Array3DImage exporter.static ThreeDSpectrumExporterget3DSpectrumExporter(FileAreaObservational fileArea, ObjectProvider provider)Gets an instance of an Array3DSpectrum exporter.static ThreeDSpectrumExporterget3DSpectrumExporter(File label, int fileAreaIndex)Gets an instance of an Array3DSpectrum exporter.static ThreeDSpectrumExporterget3DSpectrumExporter(URL label, int fileAreaIndex)Gets an instance of an Array3DSpectrum exporter.static TableExportergetTableExporter(FileAreaObservational fileArea, ObjectProvider provider)Gets an instance of a Table exporter.static TableExportergetTableExporter(File label, int fileAreaIndex)Gets an instance of a Table exporter.static TableExportergetTableExporter(URL label, int fileAreaIndex)Gets an instance of a Table exporter.static TableReadergetTableReader(Object tableObject, File dataFile)Gets a table reader object for a given table and data file.static TableReadergetTableReader(Object tableObject, URL dataFile)Gets a table reader object for a given table and data file.
- 
Method Details- 
get2DImageExporterGets an instance of a Array2DImage exporter.- Parameters:
- label- the PDS label file
- fileAreaIndex- the file area inside the label containing the data to export
- Returns:
- an instance of a TwoDImageExporter
- Throws:
- Exception
 
- 
get2DImageExporterGets an instance of a Array2DImage exporter.- Parameters:
- label- the PDS label file
- fileAreaIndex- the file area inside the label containing the data to export
- Returns:
- an instance of a TwoDImageExporter
- Throws:
- Exception
 
- 
get3DImageExporterpublic static ThreeDImageExporter get3DImageExporter(File label, int fileAreaIndex) throws ExceptionGets an instance of an Array3DImage exporter.- Parameters:
- label- the PDS label file.
- fileAreaIndex- the file area inside the label containing the data to export.
- Returns:
- an instance of a ThreeDImageExporter.
- Throws:
- Exception
 
- 
get3DImageExporterpublic static ThreeDImageExporter get3DImageExporter(URL label, int fileAreaIndex) throws ExceptionGets an instance of an Array3DImage exporter.- Parameters:
- label- the PDS label file.
- fileAreaIndex- the file area inside the label containing the data to export.
- Returns:
- an instance of a ThreeDImageExporter.
- Throws:
- Exception
 
- 
get3DSpectrumExporterpublic static ThreeDSpectrumExporter get3DSpectrumExporter(File label, int fileAreaIndex) throws ExceptionGets an instance of an Array3DSpectrum exporter.- Parameters:
- label- the PDS label file.
- fileAreaIndex- the file area inside the label containing the data to export.
- Returns:
- an instance of a ThreeDSpectrumExporter.
- Throws:
- Exception
 
- 
get3DSpectrumExporterpublic static ThreeDSpectrumExporter get3DSpectrumExporter(URL label, int fileAreaIndex) throws ExceptionGets an instance of an Array3DSpectrum exporter.- Parameters:
- label- the PDS label file.
- fileAreaIndex- the file area inside the label containing the data to export.
- Returns:
- an instance of a ThreeDSpectrumExporter.
- Throws:
- Exception
 
- 
getTableExporterGets an instance of a Table exporter.- Parameters:
- label- the PDS label file
- fileAreaIndex- the file area inside the label containing the data to export
- Returns:
- an instance of a TableExporter
- Throws:
- Exception
 
- 
getTableExporterGets an instance of a Table exporter.- Parameters:
- label- the PDS label file
- fileAreaIndex- the file area inside the label containing the data to export
- Returns:
- an instance of a TableExporter
- Throws:
- Exception
 
- 
get2DImageExporterpublic static TwoDImageExporter get2DImageExporter(FileAreaObservational fileArea, ObjectProvider provider) throws ExceptionGets an instance of a Array2DImage exporter.- Parameters:
- fileArea- the file area object containing the data to export
- provider- the object provider pointing to the PDS4 label
- Returns:
- an instance of a TwoDImageExporter
- Throws:
- Exception
 
- 
get3DImageExporterpublic static ThreeDImageExporter get3DImageExporter(FileAreaObservational fileArea, ObjectProvider provider) throws ExceptionGets an instance of an Array3DImage exporter.- Parameters:
- fileArea- the file area object containing the data to export
- provider- the object provider pointing to the PDS4 label
- Returns:
- an instance of a ThreeDImageExporter.
- Throws:
- Exception
 
- 
get3DSpectrumExporterpublic static ThreeDSpectrumExporter get3DSpectrumExporter(FileAreaObservational fileArea, ObjectProvider provider) throws ExceptionGets an instance of an Array3DSpectrum exporter.- Parameters:
- fileArea- the file area object containing the data to export
- provider- the object provider pointing to the PDS4 label
- Returns:
- an instance of a ThreeDSpectrumExporter.
- Throws:
- Exception
 
- 
getTableExporterpublic static TableExporter getTableExporter(FileAreaObservational fileArea, ObjectProvider provider) throws ExceptionGets an instance of a Table exporter.- Parameters:
- fileArea- the file area object containing the data to export
- provider- the object provider pointing to the PDS4 label
- Returns:
- an instance of a TableExporter
- Throws:
- Exception
 
- 
getTableReaderGets a table reader object for a given table and data file.- Parameters:
- tableObject- the table object, binary, character, or delimited
- dataFile- the data file containing the table
- Returns:
- a table reader for the table
- Throws:
- Exception- if there is an error reading the file
 
- 
getTableReaderGets a table reader object for a given table and data file.- Parameters:
- tableObject- the table object, binary, character, or delimited
- dataFile- the data file containing the table
- Returns:
- a table reader for the table
- Throws:
- Exception- if there is an error reading the file
 
 
-