Developing Apama Applications > Developing Adapters > Standard Plug-ins > The Fixed Width codec plug-in > Decoding fixed width data from the sink to send to the correlator
Decoding fixed width data from the sink to send to the correlator
To decode an event into a sequence of fields, the transport calls the sendTransportEvent() method as follows:
public void sendTransportEvent(Object event, TimestampSet timestamps)
   throws CodecException, SemanticMapperException
The event object is assumed to be a NormalisedEvent. It must contain the key 'data', which has a value of string type containing the data to decode. That is, the line that contains the fixed width data. The Fixed Width codec then decodes the data and stores the value from each field in a string sequence.This value from each field replaces the value for the data key.
If the event also contains a sessionId key with an integer value associated with it, this is the configuration that the codec uses to interpret the data. If the event does not contain a sessionId the codec uses the default configuration as specified in the configuration file.
Copyright © 2013 Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or Terracotta Inc., San Francisco, CA, USA, and/or Software AG (Canada) Inc., Cambridge, Ontario, Canada, and/or, Software AG (UK) Ltd., Derby, United Kingdom, and/or Software A.G. (Israel) Ltd., Or-Yehuda, Israel and/or their licensors.