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, setObservationalFileArea
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setObjectProvider, setObservationalFileArea
public FieldDescription[] getTableFields(java.lang.Object object)
object
- the table objectpublic void convert(java.lang.Object object, java.io.OutputStream outputStream) throws java.io.IOException
TableCharacter
,
TableBinary
and TableDelimited
.public void convert(java.io.OutputStream outputStream, int objectIndex) throws java.io.IOException
objectIndex
into the desired export type.public 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 © 2010-2018 Planetary Data System. All Rights Reserved.