Package gov.nasa.pds.objectAccess
Interface Exporter<T>
- Type Parameters:
- T- the object type
- All Known Implementing Classes:
- TableExporter,- ThreeDImageExporter,- ThreeDSpectrumExporter,- TwoDImageExporter
public interface Exporter<T>
Interface for exporting objects of type T.
- Author:
- dcberrio
- 
Method SummaryModifier and Type Method Description voidconvert(OutputStream outputStream, int objectIndex)Converts the object at index objectIndex into the desired export type.voidconvert(T object, OutputStream outputStream)Converts the input data file into the desired export type.voidsetExportType(String exportType)Sets the desired export (output) type.voidsetObjectProvider(ObjectProvider provider)Sets the object provider associated with the exporter.voidsetObservationalFileArea(FileAreaObservational fileAreaObs)Sets the Observational File Area associated with the exporter.
- 
Method Details- 
setExportTypeSets the desired export (output) type.- Parameters:
- exportType-
 
- 
setObjectProviderSets the object provider associated with the exporter.- Parameters:
- provider- the ObjectProvider.
 
- 
setObservationalFileAreaSets the Observational File Area associated with the exporter.- Parameters:
- fileAreaObs- the Observational File Area
 
- 
convertvoid convert(T object, OutputStream outputStream) throws IOException, InvalidTableException, com.opencsv.exceptions.CsvValidationExceptionConverts the input data file into the desired export type.- Parameters:
- object- the input object of type T
- outputStream- the output stream for the output object
- Throws:
- IOException
- com.opencsv.exceptions.CsvValidationException
- InvalidTableException
 
- 
convertvoid convert(OutputStream outputStream, int objectIndex) throws IOException, InvalidTableException, com.opencsv.exceptions.CsvValidationExceptionConverts the object at index objectIndex into the desired export type.- Parameters:
- outputStream- the output stream for the output object
- objectIndex- the index of the input object of type T in the associated observational file area
- Throws:
- IOException
- com.opencsv.exceptions.CsvValidationException
- InvalidTableException
 
 
-