com.epam.mdp.full.coders
Class FASTEncoder

java.lang.Object
  extended by com.epam.mdp.full.coders.FASTEncoder
All Implemented Interfaces:
Coder

public class FASTEncoder
extends java.lang.Object
implements Coder

Author:
Serhiy_Zahriychuk Date: Oct 30, 2008

Field Summary
 
Fields inherited from interface com.epam.mdp.full.coders.Coder
PACKET_LENGTH_LIMITATION
 
Constructor Summary
FASTEncoder(Context context)
          Creates the FASTEncoder .
 
Method Summary
 byte[] encode(EncoderContainer encoderContainer)
          Encodes the input fix message to the byte array(FAST message).
 void resetContext()
          Resets the data in context.
 void setContext(Context context)
          Setter for context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FASTEncoder

public FASTEncoder(Context context)
Creates the FASTEncoder .

Method Detail

encode

public byte[] encode(EncoderContainer encoderContainer)
Encodes the input fix message to the byte array(FAST message).

Parameters:
encoderContainer - Container that contains templateId \ for esy found template(if template Id is null then encoder use per - FIXMessage strategy for found template) and FIX message for encode.
Returns:
FAST message in byte array.

setContext

public void setContext(Context context)
Setter for context.

Parameters:
context - the context

resetContext

public void resetContext()
Resets the data in context.

Specified by:
resetContext in interface Coder
See Also:
Coder.resetContext()


Copyright © 2000-2014 EPAM Systems. All Rights Reserved.