The FLV component is able to parse a file containing fixed-length values (FLV's) into XML.
You can configure the FLV component with rules. Each rule has the following properties:
|Lines which start with exactly this text will be matched|
|Lines flagged as groups mark the beginning or end of a series of related lines. These lines will be enclosed in a |
Each rule can further be expanded to reveal the fields it maps to. A field mapping is configured with just 2 settings:
|Name of the field|
|The length of the field|
Any number of rules and/or fields can be specified.
Take for example a configuration with the following rule:
Let's define the rule with the following fields:
If the FLV component receives the following input…
…it will yield the following XML
<flv-message> <rule matchOn="YAY" fields="headerbody" /> <segment> <header>YAY</header> <body>thing</body> </segment> </flv-message>