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 Summary
Modifier 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
-
get2DImageExporter
Gets an instance of a Array2DImage exporter.- Parameters:
label- the PDS label filefileAreaIndex- the file area inside the label containing the data to export- Returns:
- an instance of a TwoDImageExporter
- Throws:
Exception
-
get2DImageExporter
Gets an instance of a Array2DImage exporter.- Parameters:
label- the PDS label filefileAreaIndex- the file area inside the label containing the data to export- Returns:
- an instance of a TwoDImageExporter
- Throws:
Exception
-
get3DImageExporter
public 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
-
get3DImageExporter
public 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
-
get3DSpectrumExporter
public 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
-
get3DSpectrumExporter
public 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
-
getTableExporter
Gets an instance of a Table exporter.- Parameters:
label- the PDS label filefileAreaIndex- the file area inside the label containing the data to export- Returns:
- an instance of a TableExporter
- Throws:
Exception
-
getTableExporter
Gets an instance of a Table exporter.- Parameters:
label- the PDS label filefileAreaIndex- the file area inside the label containing the data to export- Returns:
- an instance of a TableExporter
- Throws:
Exception
-
get2DImageExporter
public 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 exportprovider- the object provider pointing to the PDS4 label- Returns:
- an instance of a TwoDImageExporter
- Throws:
Exception
-
get3DImageExporter
public 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 exportprovider- the object provider pointing to the PDS4 label- Returns:
- an instance of a ThreeDImageExporter.
- Throws:
Exception
-
get3DSpectrumExporter
public 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 exportprovider- the object provider pointing to the PDS4 label- Returns:
- an instance of a ThreeDSpectrumExporter.
- Throws:
Exception
-
getTableExporter
public 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 exportprovider- the object provider pointing to the PDS4 label- Returns:
- an instance of a TableExporter
- Throws:
Exception
-
getTableReader
Gets a table reader object for a given table and data file.- Parameters:
tableObject- the table object, binary, character, or delimiteddataFile- the data file containing the table- Returns:
- a table reader for the table
- Throws:
Exception- if there is an error reading the file
-
getTableReader
Gets a table reader object for a given table and data file.- Parameters:
tableObject- the table object, binary, character, or delimiteddataFile- the data file containing the table- Returns:
- a table reader for the table
- Throws:
Exception- if there is an error reading the file
-