Package gov.nasa.pds.objectAccess
Class ObjectExporter
- java.lang.Object
-
- gov.nasa.pds.objectAccess.ObjectExporter
-
- Direct Known Subclasses:
ImageExporter
,TableExporter
public abstract class ObjectExporter extends java.lang.Object
Super class of all object type exporters.- Author:
- dcberrio
-
-
Constructor Summary
Constructors Constructor Description ObjectExporter()
ObjectExporter(FileAreaObservational fileArea, ObjectProvider provider)
Super constructor.ObjectExporter(java.io.File label, int fileAreaIndex)
Super constructor.ObjectExporter(java.net.URL label, int fileAreaIndex)
Super constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectProvider
getObjectProvider()
Gets the objectProvider associated with this exporter.FileAreaObservational
getObservationalFileArea()
Gets the observational file area containing the data to be exported.protected void
parseLabel(java.io.File label, int fileAreaIndex)
protected void
parseLabel(java.net.URL label, int fileAreaIndex)
void
setObjectProvider(ObjectProvider provider)
Sets the objectProvider associated with this exporter.void
setObservationalFileArea(FileAreaObservational fileAreaObs)
Set the observational file area containing the data to be exported.
-
-
-
Constructor Detail
-
ObjectExporter
public ObjectExporter()
-
ObjectExporter
public ObjectExporter(java.io.File label, int fileAreaIndex) throws java.lang.Exception
Super constructor. Parses the input label file, reporting errors appropriately.- Parameters:
label
- the label filefileAreaIndex
- the index of the observational file area to be used by this exporter- Throws:
java.lang.Exception
-
ObjectExporter
public ObjectExporter(java.net.URL label, int fileAreaIndex) throws java.lang.Exception
Super constructor. Parses the input label file, reporting errors appropriately.- Parameters:
label
- the label filefileAreaIndex
- the index of the observational file area to be used by this exporter- Throws:
java.lang.Exception
-
ObjectExporter
public ObjectExporter(FileAreaObservational fileArea, ObjectProvider provider) throws java.io.IOException
Super constructor.- Parameters:
fileArea
- the observational file area to be used by this exporterprovider
- the objectProvider that points to the location of the data to export- Throws:
java.io.IOException
-
-
Method Detail
-
parseLabel
protected void parseLabel(java.io.File label, int fileAreaIndex) throws java.lang.Exception
- Throws:
java.lang.Exception
-
parseLabel
protected void parseLabel(java.net.URL label, int fileAreaIndex) throws java.lang.Exception
- Throws:
java.lang.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
-
-