Interface HistoryFlavorCodec
public interface HistoryFlavorCodec
A HistoryFlavorCodec knows how to encode and decode a certain history flavor in binary and potentially
 several text formats.
 
It will be used to import and export data from the store and forward system, and the binary encoding will be used to store the the data cache.
Versioning If a codec changes over time, new instances should be registered for each version. On export or new data, the latest version will be used, but on decode the correct version will be retrieved.
- 
Nested Class SummaryNested Classes
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final HistoryFlavorCodec.TextFormatstatic final HistoryFlavorCodec.TextFormatstatic final HistoryFlavorCodec.TextFormat
- 
Method SummaryModifier and TypeMethodDescriptiondecode(byte[] bytes) byte[]encode(HistoricalData data) voidencodeText(Writer w, HistoricalData data, HistoryFlavorCodec.TextFormat fmt) intversion()Returns the version of this codec instance.
- 
Field Details- 
XML
- 
CSV
- 
JSON
 
- 
- 
Method Details- 
versionint version()Returns the version of this codec instance.
- 
encode
- 
decode
- 
getSupportedTextFormatsList<HistoryFlavorCodec.TextFormat> getSupportedTextFormats()
- 
encodeTextvoid encodeText(Writer w, HistoricalData data, HistoryFlavorCodec.TextFormat fmt) throws IOException - Throws:
- IOException
 
- 
decodeText- Throws:
- IOException
 
 
-