public class TableExporter extends ObjectExporter implements Exporter<Object>
Modifier and Type | Method and Description |
---|---|
void |
convert(Object object,
OutputStream outputStream)
Converts the table object into the desired export type.
|
void |
convert(OutputStream outputStream,
int objectIndex)
Converts the table object at the given
objectIndex
into the desired export type. |
Charset |
getDecoder()
Returns the
Charset to use for decoding the bytes. |
Charset |
getEncoder()
Returns the
Charset to use for encoding the bytes. |
String |
getExportType()
Gets the desired export type.
|
FieldDescription[] |
getTableFields(Object object)
Gets the fields of a given table object.
|
void |
setDecoder(String charsetName)
Sets a character set to use for decoding the bytes.
|
void |
setEncoder(String charsetName)
Sets a character set to use for encoding the bytes.
|
void |
setExportType(String exportType)
Sets the desired export (output) type.
|
getObjectProvider, getObservationalFileArea, parseLabel, setObjectProvider, setObservationalFileArea
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setObjectProvider, setObservationalFileArea
public FieldDescription[] getTableFields(Object object)
object
- the table objectpublic void convert(Object object, OutputStream outputStream) throws IOException
TableCharacter
,
TableBinary
and TableDelimited
.convert
in interface Exporter<Object>
object
- the table object to convertoutputStream
- the output stream for the output fileIOException
- If an I/O error occurspublic void convert(OutputStream outputStream, int objectIndex) throws IOException
objectIndex
into the desired export type.convert
in interface Exporter<Object>
outputStream
- the output stream for the output fileobjectIndex
- the index of the input table objectIOException
- If an I/O error occurspublic String getExportType()
public void setExportType(String exportType)
setExportType
in interface Exporter<Object>
exportType
- the export typepublic void setDecoder(String charsetName)
charsetName
- the name of a character setUnsupportedCharsetException
- If name is not validpublic Charset getDecoder()
Charset
to use for decoding the bytes.public void setEncoder(String charsetName)
charsetName
- the name of a character setUnsupportedCharsetException
- If name is not validpublic Charset getEncoder()
Charset
to use for encoding the bytes.Copyright © 2010–2016 Planetary Data System. All rights reserved.