Runtime components : Core components : Formatters : Tasks : Handling binary message : Using your own ElementProcessor : Configuring format component to use your own ElementProcessor
  
Configuring format component to use your own ElementProcessor
You need to configure format component so that it uses your own ElementProcessor. You need to add a kColl of ElementProcessor, and in this kColl, you need to specify a field name class. Then you need to add the parameter of your own ElementProcessor in the kColl.
Example
<kColl id="format61">
  <field id="initializer" value="com.ibm.btt.format.FormatInitializer" />
  <field id="extFile" value="format.xml" />
  <kColl id="elementProcessor">
    <field id="class"
value="com.ibm.btt.format.elementProcessor.DefaultValueProcessor" />
    <iColl id="defaultValues">
      <kColl>
        <field id="tagName" value="fInteger" />
        <field id="attributeName" value="byteOrdering" />
        <field id="defaultValue" value="host" />
      </kColl>
    <kColl>
      <field id="tagName" value="fInteger" />
      <field id="attributeName" value="size" />
      <field id="defaultValue" value="4" />
      </kColl>
    </iColl>
  </kColl>
  <kColl id="classTable>
    <field id="fmtDef" value="com.ibm.btt.format.impl.FormatDefine" />
    <field id="fInteger" value="com.ibm.btt.format.impl.IntegerFormat" />
  </kColl>
</kColl>
With this ElementProcessor, you can get the following definition:<fInteger dataName="dByte" />, which equals the following definition: <fInteger dataName="dByte" size="4" byteOrdering="host">.
Go up to
Using your own ElementProcessor