|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--uk.ac.starlink.votable.VOSerializer
Class which knows how to serialize a table's fields and data to a
VOTable DATA element.
Obtain an instance of this class using the makeSerializer(uk.ac.starlink.votable.DataFormat, uk.ac.starlink.table.StarTable)
method.
Method Summary | |
DataFormat |
getFormat()
Returns the data format which this object can serialize to. |
StarTable |
getTable()
Returns the table object which this object can serialize. |
static VOSerializer |
makeSerializer(DataFormat dataFormat,
StarTable table)
Factory method which returns a serializer capable of serializing a given table to a given data format. |
abstract void |
writeFields(BufferedWriter writer)
Writes the FIELD headers corresponding to this table on a given writer. |
abstract void |
writeHrefDataElement(BufferedWriter xmlwriter,
String href,
DataOutput streamout)
Writes this serializer's table data to a <DATA> element containing a <STREAM> element which references an external data source (optional method). |
abstract void |
writeInlineDataElement(BufferedWriter writer)
Writes this serializer's table data as a self-contained <DATA> element. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public DataFormat getFormat()
public StarTable getTable()
public abstract void writeFields(BufferedWriter writer) throws IOException
writer
- destination stream
IOException
public abstract void writeInlineDataElement(BufferedWriter writer) throws IOException
writer
- destination stream
IOException
public abstract void writeHrefDataElement(BufferedWriter xmlwriter, String href, DataOutput streamout) throws IOException
xmlwriter
- destination stream for the XML outputhref
- URL for the external stream (output as the href
attribute of the written <STREAM> element)streamout
- destination stream for the binary table data
IOException
public static VOSerializer makeSerializer(DataFormat dataFormat, StarTable table) throws IOException
dataFormat
- one of the supported VOTable serialization formatstable
- the table to be serialized
IOException
|
Copyright © 2004 CLRC: Central Laboratory of the Research Councils. All rights reserved. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |