public class TableExporter extends ObjectExporter implements Exporter<java.lang.Object>
| Modifier and Type | Method and Description |
|---|---|
void |
convert(java.lang.Object object,
java.io.OutputStream outputStream)
Converts the table object into the desired export type.
|
void |
convert(java.io.OutputStream outputStream,
int objectIndex)
Converts the table object at the given
objectIndex into the desired export type. |
java.nio.charset.Charset |
getDecoder()
Returns the
Charset to use for decoding the bytes. |
java.nio.charset.Charset |
getEncoder()
Returns the
Charset to use for encoding the bytes. |
java.lang.String |
getExportType()
Gets the desired export type.
|
FieldDescription[] |
getTableFields(java.lang.Object object)
Gets the fields of a given table object.
|
void |
setDecoder(java.lang.String charsetName)
Sets a character set to use for decoding the bytes.
|
void |
setEncoder(java.lang.String charsetName)
Sets a character set to use for encoding the bytes.
|
void |
setExportType(java.lang.String exportType)
Sets the desired export (output) type.
|
getObjectProvider, getObservationalFileArea, parseLabel, parseLabel, setObjectProvider, setObservationalFileAreaclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetObjectProvider, setObservationalFileAreapublic FieldDescription[] getTableFields(java.lang.Object object) throws InvalidTableException
object - the table objectInvalidTableExceptionpublic void convert(java.lang.Object object,
java.io.OutputStream outputStream)
throws java.io.IOException,
InvalidTableException,
com.opencsv.exceptions.CsvValidationException
TableCharacter, TableBinary and TableDelimited.convert in interface Exporter<java.lang.Object>object - the table object to convertoutputStream - the output stream for the output filejava.io.IOException - If an I/O error occurscom.opencsv.exceptions.CsvValidationExceptionMissingDataExceptionInvalidTableExceptionpublic void convert(java.io.OutputStream outputStream,
int objectIndex)
throws java.io.IOException,
InvalidTableException,
com.opencsv.exceptions.CsvValidationException
objectIndex into the desired export type.convert in interface Exporter<java.lang.Object>outputStream - the output stream for the output fileobjectIndex - the index of the input table objectjava.io.IOException - If an I/O error occurscom.opencsv.exceptions.CsvValidationExceptionMissingDataExceptionInvalidTableExceptionpublic java.lang.String getExportType()
public void setExportType(java.lang.String exportType)
setExportType in interface Exporter<java.lang.Object>exportType - the export typepublic void setDecoder(java.lang.String charsetName)
charsetName - the name of a character setjava.nio.charset.UnsupportedCharsetException - If name is not validpublic java.nio.charset.Charset getDecoder()
Charset to use for decoding the bytes.public void setEncoder(java.lang.String charsetName)
charsetName - the name of a character setjava.nio.charset.UnsupportedCharsetException - If name is not validpublic java.nio.charset.Charset getEncoder()
Charset to use for encoding the bytes.Copyright © 2022 Planetary Data System. All rights reserved.