Class ObjectExporter

java.lang.Object
gov.nasa.pds.objectAccess.ObjectExporter
Direct Known Subclasses:
ImageExporter, TableExporter

public abstract class ObjectExporter
extends Object
Super class of all object type exporters.
Author:
dcberrio
  • Constructor Details

    • ObjectExporter

      public ObjectExporter()
    • ObjectExporter

      public ObjectExporter​(File label, int fileAreaIndex) throws Exception
      Super constructor. Parses the input label file, reporting errors appropriately.
      Parameters:
      label - the label file
      fileAreaIndex - the index of the observational file area to be used by this exporter
      Throws:
      Exception
    • ObjectExporter

      public ObjectExporter​(URL label, int fileAreaIndex) throws Exception
      Super constructor. Parses the input label file, reporting errors appropriately.
      Parameters:
      label - the label file
      fileAreaIndex - the index of the observational file area to be used by this exporter
      Throws:
      Exception
    • ObjectExporter

      public ObjectExporter​(FileAreaObservational fileArea, ObjectProvider provider) throws IOException
      Super constructor.
      Parameters:
      fileArea - the observational file area to be used by this exporter
      provider - the objectProvider that points to the location of the data to export
      Throws:
      IOException
  • Method Details

    • parseLabel

      protected void parseLabel​(File label, int fileAreaIndex) throws Exception
      Throws:
      Exception
    • parseLabel

      protected void parseLabel​(URL label, int fileAreaIndex) throws Exception
      Throws:
      Exception
    • setObjectProvider

      public void setObjectProvider​(ObjectProvider provider)
      Sets the objectProvider associated with this exporter.
      Parameters:
      provider - the objectProvider associated with this exporter
    • getObjectProvider

      public ObjectProvider getObjectProvider()
      Gets the objectProvider associated with this exporter.
      Returns:
      objectProvider the objectProvider associated with this exporter
    • setObservationalFileArea

      public void setObservationalFileArea​(FileAreaObservational fileAreaObs)
      Set the observational file area containing the data to be exported.
      Parameters:
      fileAreaObs - the observational file area containing the data to be exported
    • getObservationalFileArea

      public FileAreaObservational getObservationalFileArea()
      Gets the observational file area containing the data to be exported.
      Returns:
      fileArea the observational file area containing the data to be exported