Package xal.tools.coding
Interface Coder
- All Known Implementing Classes:
JSONCoder
public interface Coder
Declares methods a coder should implement.
-
Method Summary
Modifier and TypeMethodDescriptionDecode the archiveEncode an objectGet a list of all types which are supported for coding and decoding<C,
R> void registerType
(Class<C> type, ConversionAdaptor<C, R> adaptor) Register the custom type by class and its associated adaptor
-
Method Details
-
encode
Encode an object -
decode
Decode the archive -
registerType
Register the custom type by class and its associated adaptor -
getSupportedTypes
Get a list of all types which are supported for coding and decoding
-