gov.nasa.pds.objectAccess
Interface Exporter<T>

Type Parameters:
T - the object type
All Known Implementing Classes:
TableExporter, TwoDImageExporter

public interface Exporter<T>

Interface for exporting objects of type T.

Author:
dcberrio

Method Summary
 void convert(OutputStream outputStream, int objectIndex)
          Converts the object at index objectIndex into the desired export type.
 void convert(T object, OutputStream outputStream)
          Converts the input data file into the desired export type.
 void setExportType(String exportType)
          Sets the desired export (output) type.
 void setObjectProvider(ObjectProvider provider)
          Sets the object provider associated with the exporter.
 void setObservationalFileArea(FileAreaObservational fileAreaObs)
          Sets the Observational File Area associated with the exporter.
 

Method Detail

setExportType

void setExportType(String exportType)
Sets the desired export (output) type.

Parameters:
exportType -

setObjectProvider

void setObjectProvider(ObjectProvider provider)
Sets the object provider associated with the exporter.

Parameters:
provider - the ObjectProvider.

setObservationalFileArea

void setObservationalFileArea(FileAreaObservational fileAreaObs)
Sets the Observational File Area associated with the exporter.

Parameters:
fileAreaObs - the Observational File Area

convert

void convert(T object,
             OutputStream outputStream)
             throws IOException
Converts 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

convert

void convert(OutputStream outputStream,
             int objectIndex)
             throws IOException
Converts 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


Copyright © 2013. All Rights Reserved.