public class TopcatCodec
extends java.lang.Object
This class is currently a singleton.
Modifier and Type | Method and Description |
---|---|
TopcatModel |
decode(uk.ac.starlink.table.StarTable table,
java.lang.String location,
ControlWindow controlWindow)
Takes a table which has been previously serialized by calling
this class's
encode(uk.ac.starlink.topcat.TopcatModel) method, and turns it into a TopcatModel. |
uk.ac.starlink.table.StarTable |
encode(TopcatModel tcModel)
Turns a TopcatModel into a StarTable, ready for serialization.
|
static TopcatCodec |
getInstance()
Returns the sole instance of this class.
|
boolean |
isCodecUtype(java.lang.String utype)
Indicates whether a given utype is a marker for metadata private
to the serialization scheme used by this class.
|
public uk.ac.starlink.table.StarTable encode(TopcatModel tcModel)
tcModel
- modelpublic TopcatModel decode(uk.ac.starlink.table.StarTable table, java.lang.String location, ControlWindow controlWindow)
encode(uk.ac.starlink.topcat.TopcatModel)
method, and turns it into a TopcatModel.
If it looks like the table is not one which was the result of an
earlier encode
call, null will be returned.
Should be called from the AWT event dispatch thread.table
- encoded tablelocation
- table location stringcontrolWindow
- control windowpublic static TopcatCodec getInstance()
public boolean isCodecUtype(java.lang.String utype)
utype
- info utypeCopyright © 2003-2017 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.