|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nasa.pds.objectAccess.ObjectExporter
gov.nasa.pds.objectAccess.TableExporter
public class TableExporter
Defines methods for converting a table object to a desired export type.
Method Summary | |
---|---|
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. |
Methods inherited from class gov.nasa.pds.objectAccess.ObjectExporter |
---|
getObjectProvider, getObservationalFileArea, setObjectProvider, setObservationalFileArea |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface gov.nasa.pds.objectAccess.Exporter |
---|
setObjectProvider, setObservationalFileArea |
Method Detail |
---|
public FieldDescription[] getTableFields(Object object)
object
- the table object
public 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 file
IOException
- 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 object
IOException
- 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 set
UnsupportedCharsetException
- 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 set
UnsupportedCharsetException
- If name is not validpublic Charset getEncoder()
Charset
to use for encoding the bytes.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |