T - the object typepublic interface Exporter<T>
| Modifier and Type | Method and Description |
|---|---|
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.
|
void setExportType(String exportType)
exportType - void setObjectProvider(ObjectProvider provider)
provider - the ObjectProvider.void setObservationalFileArea(FileAreaObservational fileAreaObs)
fileAreaObs - the Observational File Areavoid convert(T object, OutputStream outputStream) throws IOException, InvalidTableException, com.opencsv.exceptions.CsvValidationException
object - the input object of type ToutputStream - the output stream for the output objectIOExceptioncom.opencsv.exceptions.CsvValidationExceptionInvalidTableExceptionvoid convert(OutputStream outputStream, int objectIndex) throws IOException, InvalidTableException, com.opencsv.exceptions.CsvValidationException
outputStream - the output stream for the output objectobjectIndex - the index of the input object of type T in the associated
observational file areaIOExceptioncom.opencsv.exceptions.CsvValidationExceptionInvalidTableExceptionCopyright © 2021. All rights reserved.