Lines Matching refs:encoder

1 .. index:: encoder
21 libxo-based applications can automatically use any installed encoder.
23 Use the "encoder=XXX" option to access encoders. The following
24 example uses the "cbor" encoder, saving the output into a file::
26 df --libxo encoder=cbor > df-output.cbor
29 following the encoder name with a colon (':') or a plus sign ('+') and
32 df --libxo encoder=csv+path=filesystem+leaf=name+no-header
33 df --libxo encoder=csv:path=filesystem:leaf=name:no-header
35 These examples instructs libxo to load the "csv" encoder and pass the
42 Each of these option is interpreted by the encoder, and all such
43 options names and semantics are specific to the particular encoder.
44 Refer to the intended encoder for documentation on its options.
46 The string "@" can be used in place of the string "encoder=".
55 libxo ships with a custom encoder for "CSV" files, a common format for
56 comma separated values. The output of the CSV encoder can be loaded
62 encoder has a number of options to tailor output to those
97 The CSV encoder will emit the leaf values in this output as `fields`
101 % list-items --libxo encoder=csv
107 Be aware that since the CSV encoder looks for data instances, when
110 % xo --libxo encoder=csv --instance foo 'The {:product} is {:status}\n' stereo "in route"
119 By default, the CSV encoder will attempt to emit any list instance
130 % list-items --libxo encoder=csv:path=top/data/item
152 CSV encoder records the set of leafs that appear in the first list
171 % list-items --libxo encoder=csv:leafs=sku.on-order
176 % list-items -libxo encoder=csv:leafs=on-order.sku
202 The csv encoder defaults to producing the header line, but the
212 instruct the CSV encoder to avoid the use of quotes.
224 The CSV encoder defaults to using the standard Unix end-of-line
231 The encoder API consists of three distinct phases:
233 - loading the encoder
234 - initializing the encoder
235 - feeding operations to the encoder
237 To load the encoder, libxo will open a shared library named:
239 ${prefix}/lib/libxo/encoder/${name}.enc
270 processing model. For example OP_OPEN_CONTAINER tells the encoder
271 that a new container has been opened, and the encoder can behave in an