|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbiz.onixs.fix.fast.Encoder
public class Encoder
FIX-to-FAST Encoder.
Field Summary | |
---|---|
protected boolean |
codeEachMessageIndependently
|
protected biz.onixs.fix.fast.DictionaryLibrary |
dictionaryLibrary
|
protected FastVersion |
fastVersion
|
protected Version |
fixVersion
|
protected TemplateLibrary |
templateLibrary
|
Constructor Summary | |
---|---|
Encoder(TemplateLibrary templateLibrary,
Version fixVersion,
FastVersion fastVersion)
Constructor. |
|
Encoder(TemplateLibrary templateLibrary,
Version fixVersion,
FastVersion fastVersion,
boolean codeEachMessageIndependently)
Constructor. |
Method Summary | |
---|---|
byte[] |
encode(Message message,
int templateId)
Encodes the given FIX message into a FAST stream chunk. |
protected Dictionary |
getDictionary(Template template)
|
FastVersion |
getFastVersion()
Returns source FAST version. |
Version |
getFixVersion()
Returns target FIX version. |
TemplateLibrary |
getTemplateLibrary()
Returns associated template library. |
boolean |
isCodeEachMessageIndependently()
Returns option to reset the previous values dictionaries before decoding a new FIX message. |
void |
reset()
Resets the state of the previous values dictionaries (sets the state of the previous values to undefined). |
void |
setDecodeEachMessageIndependently(boolean codeEachMessageIndependently)
Sets option to reset the previous values dictionaries before coding a new FIX message. |
protected void |
setDictionary(Template template,
Dictionary dictionary)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected boolean codeEachMessageIndependently
protected TemplateLibrary templateLibrary
protected Version fixVersion
protected FastVersion fastVersion
protected biz.onixs.fix.fast.DictionaryLibrary dictionaryLibrary
Constructor Detail |
---|
public Encoder(TemplateLibrary templateLibrary, Version fixVersion, FastVersion fastVersion)
templateLibrary
- template library to usefixVersion
- source FIX versionfastVersion
- target FAST versionpublic Encoder(TemplateLibrary templateLibrary, Version fixVersion, FastVersion fastVersion, boolean codeEachMessageIndependently)
templateLibrary
- template library to usefixVersion
- source FIX versionfastVersion
- target FAST versioncodeEachMessageIndependently
- option to reset the previous values dictionaries (default is true)Method Detail |
---|
public byte[] encode(Message message, int templateId) throws FastException
message
- input FIX messagetemplateId
- template id to use
FastException
- if encoding failedpublic String toString()
toString
in class Object
public boolean isCodeEachMessageIndependently()
public void setDecodeEachMessageIndependently(boolean codeEachMessageIndependently)
codeEachMessageIndependently
- option to reset the previous values dictionariespublic TemplateLibrary getTemplateLibrary()
public FastVersion getFastVersion()
public Version getFixVersion()
public void reset()
protected Dictionary getDictionary(Template template)
protected void setDictionary(Template template, Dictionary dictionary)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |