267
edits
No edit summary |
No edit summary |
||
Line 37: | Line 37: | ||
* Decode: this library uses the formatter to deliver to the user the encoded metadata from a KLV package. | * Decode: this library uses the formatter to deliver to the user the encoded metadata from a KLV package. | ||
In other words, the user chooses which file format to use for both encoding and decoding actions. | |||
* Composition input format: To encode the input file, it must follow the following structure (a use case will be shown using the JSON format). | * Composition input format: To encode the input file, it must follow the following structure (a use case will be shown using the JSON format). | ||
Line 52: | Line 52: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
'''Note''': some tags are mandatories depending on the standard. | An example of the previous structure is: | ||
<syntaxhighlight lang=json> | |||
{ | |||
"key": "060E2B34020B01010E01030101000000", | |||
"items": [ | |||
{ | |||
"tag": "2", | |||
"value": "Oct. 24, 2008. 00:13:29.913" | |||
}, | |||
{ | |||
"tag": "3", | |||
"value": "MISSION01" | |||
}, | |||
{ | |||
"tag": "5", | |||
"value": "159.97436" | |||
} | |||
] | |||
} | |||
</syntaxhighlight> | |||
'''Note''': some tags are mandatories depending on the standard. In this case, tag 2 is mandatory. | |||
The method header is: | The method header is: |
edits