|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbiz.onixs.fix.fastnew.Encoder
public class Encoder
FIX-to-FAST Encoder.
Field Summary | |
---|---|
protected boolean |
codeEachMessageIndependently
|
protected FastVersion |
fastVersion
|
protected FixBlock |
fixBlock
|
protected Version |
fixVersion
|
protected biz.onixs.fix.fastnew.ScaledDecimal |
lastScaledDecimal
|
protected int |
lastTemplateId
|
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)
Encodes the given FIX message into a FAST stream chunk. The template is selected automatically with the max id for the specific FIX message type. |
byte[] |
encode(Message message,
int templateId)
Encodes the given FIX message into a FAST stream chunk. |
FastVersion |
getFastVersion()
Returns source FAST version. |
Version |
getFixVersion()
Returns target FIX version. |
TemplateLibrary |
getTemplateLibrary()
Returns associated template library. |
boolean |
isCodeEachMessageIndependently()
|
void |
reset()
Resets the state of the previous values dictionaries (sets the state of the previous values to undefined). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected boolean codeEachMessageIndependently
protected TemplateLibrary templateLibrary
protected Version fixVersion
protected FastVersion fastVersion
protected FixBlock fixBlock
protected biz.onixs.fix.fastnew.ScaledDecimal lastScaledDecimal
protected int lastTemplateId
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) throws FastException
message
- input FIX message
FastException
- if encoding failedpublic byte[] encode(Message message, int templateId) throws FastException
message
- input FIX messagetemplateId
- template id to use
FastException
- if encoding failedpublic TemplateLibrary getTemplateLibrary()
public FastVersion getFastVersion()
public Version getFixVersion()
public boolean isCodeEachMessageIndependently()
public void reset()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |