public class TopcatCodec1 extends Object implements TopcatCodec
An additional issue is that there is a limit of 64 subsets.
Constructor and Description |
---|
TopcatCodec1() |
Modifier and Type | Method and Description |
---|---|
TopcatModel |
decode(uk.ac.starlink.table.StarTable table,
String location,
ControlWindow controlWindow)
|
uk.ac.starlink.table.StarTable |
encode(TopcatModel tcModel)
Turns a TopcatModel into a StarTable, ready for serialization.
|
boolean |
isCodecUtype(String utype)
Indicates whether a given utype is a marker for metadata private
to the serialization scheme used by this class.
|
boolean |
isEncoded(uk.ac.starlink.table.StarTable table)
Indicates whether a given table is a candidate for this codec's
decode method. |
public uk.ac.starlink.table.StarTable encode(TopcatModel tcModel)
TopcatCodec
encode
in interface TopcatCodec
tcModel
- modelpublic boolean isEncoded(uk.ac.starlink.table.StarTable table)
TopcatCodec
decode
method. It should in general return true
for a table that has been returned from this object's
encode
method (possibly following a table
write/read cycle) and false for other tables.isEncoded
in interface TopcatCodec
table
- data+metadata tablepublic TopcatModel decode(uk.ac.starlink.table.StarTable table, String location, ControlWindow controlWindow)
TopcatCodec
encode
method, and for which the
isEncoded
method returns true,
and turns it into a TopcatModel.
If decoding fails, null is returned.
If used with a ControlWindow that users may be interacting with,
this method should be called from the AWT event dispatch thread.
This method may (for instance during testing) be called with
a null value for the controlWindow
parameter,
but the resulting TopcatModel may not be suitable for all kinds
of user interactions.
decode
in interface TopcatCodec
table
- encoded tablelocation
- table location stringcontrolWindow
- control window, or null if necessarypublic boolean isCodecUtype(String utype)
utype
- info utypeCopyright © 2003-2025 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.