|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbiz.onixs.fix.fast.Decoder
public class Decoder
FAST-to-FIX Decoder.
Field Summary | |
---|---|
protected boolean |
codeEachMessageIndependently
|
protected biz.onixs.fix.fast.DictionaryLibrary |
dictionaryLibrary
|
protected FastVersion |
fastVersion
|
protected Version |
fixVersion
|
protected TemplateLibrary |
templateLibrary
|
Constructor Summary | |
---|---|
Decoder(TemplateLibrary templateLibrary,
FastVersion fastVersion,
Version fixVersion)
Constructor. |
|
Decoder(TemplateLibrary templateLibrary,
FastVersion fastVersion,
Version fixVersion,
boolean codeEachMessageIndependently)
Constructor. |
Method Summary | |
---|---|
Message |
decode(byte[] buffer)
Decodes the given FAST stream chunk into the corresponding FIX Message. |
Message |
decode(byte[] buffer,
int offset)
Decodes the given FAST stream chunk into the corresponding FIX Message. |
Message |
decode(byte[] buffer,
int offset,
int count)
Decodes the given FAST stream chunk into the corresponding FIX Message. |
Message |
decode(biz.onixs.util.ByteBuffer buffer)
Decodes the given FAST stream chunk into the corresponding FIX Message. |
Message |
decode(biz.onixs.util.ByteBuffer buffer,
int offset)
Decodes the given FAST stream chunk into the corresponding FIX Message. |
void |
decode(DecodeResult result,
byte[] buffer)
Decodes the given FAST stream chunk into the corresponding FIX Message. |
void |
decode(DecodeResult result,
byte[] buffer,
int offset)
Decodes the given FAST stream chunk into the corresponding FIX Message. |
void |
decode(DecodeResult result,
byte[] buffer,
int offset,
int count)
Decodes the given FAST stream chunk into the corresponding FIX Message. |
void |
decode(DecodeResult result,
biz.onixs.util.ByteBuffer buffer)
Decodes the given FAST stream chunk into the corresponding FIX Message. |
void |
decode(DecodeResult result,
biz.onixs.util.ByteBuffer buffer,
int offset)
Decodes the given FAST stream chunk into the corresponding FIX Message. |
protected Dictionary |
getDictionary(Template template)
|
FastVersion |
getFastVersion()
Returns source FAST version. |
FixMessageFactory |
getFixMessageFactory()
Returns message factory to use for creating decoded FIX message instance. |
Version |
getFixVersion()
Returns target FIX version. |
int |
getMaximumNumberOfRepeatingGroupEntries()
Returns maximum allowed number of repeating group entries. |
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)
|
void |
setFixMessageFactory(FixMessageFactory messageFactory)
Sets message factory to use for creating decoded FIX message instance. |
void |
setMaximumNumberOfRepeatingGroupEntries(int maximumNumberOfRepeatingGroupEntries)
Sets maximum allowed number of repeating group entries. |
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 Decoder(TemplateLibrary templateLibrary, FastVersion fastVersion, Version fixVersion)
templateLibrary
- template library to usefastVersion
- source FAST versionfixVersion
- target FIX versionpublic Decoder(TemplateLibrary templateLibrary, FastVersion fastVersion, Version fixVersion, boolean codeEachMessageIndependently)
templateLibrary
- template library to usefastVersion
- source FAST versionfixVersion
- target FIX versioncodeEachMessageIndependently
- option to reset the previous values dictionaries (default is true)Method Detail |
---|
public int getMaximumNumberOfRepeatingGroupEntries()
public void setMaximumNumberOfRepeatingGroupEntries(int maximumNumberOfRepeatingGroupEntries)
maximumNumberOfRepeatingGroupEntries
- max number of repeating group entriespublic FixMessageFactory getFixMessageFactory()
public void setFixMessageFactory(FixMessageFactory messageFactory)
messageFactory
- FIX message factorypublic Message decode(biz.onixs.util.ByteBuffer buffer) throws FastException
buffer
- an array of bytes that contains the source FAST stream chunk
FastException
- if error occurspublic Message decode(biz.onixs.util.ByteBuffer buffer, int offset) throws FastException
buffer
- an array of bytes that contains the source FAST stream chunkoffset
- the zero-based byte offset in buffer at which to begin decoding
FastException
- if error occurspublic Message decode(byte[] buffer, int offset, int count) throws FastException
buffer
- an array of bytes that contains the source FAST stream chunkoffset
- the zero-based byte offset in buffer at which to begin decodingcount
- the number of bytes to process
FastException
- if error occurspublic Message decode(byte[] buffer, int offset) throws FastException
buffer
- input FAST dataoffset
- the number of bytes from the beginning of the byte array to skip
FastException
- if decoding failedpublic Message decode(byte[] buffer) throws FastException
buffer
- an array of bytes that contains the source FAST stream chunk
FastException
- if decoding failedpublic void decode(DecodeResult result, biz.onixs.util.ByteBuffer buffer) throws FastException
result
- decode result to fillbuffer
- an array of bytes that contains the source FAST stream chunk
FastException
- if error occurspublic void decode(DecodeResult result, biz.onixs.util.ByteBuffer buffer, int offset) throws FastException
result
- decode result to fillbuffer
- an array of bytes that contains the source FAST stream chunkoffset
- the zero-based byte offset in buffer at which to begin decoding
FastException
- if error occurspublic void decode(DecodeResult result, byte[] buffer, int offset, int count) throws FastException
result
- decode result to fillbuffer
- an array of bytes that contains the source FAST stream chunkoffset
- the zero-based byte offset in buffer at which to begin decodingcount
- the number of bytes to process
FastException
- if error occurspublic void decode(DecodeResult result, byte[] buffer, int offset) throws FastException
result
- decode result to fillbuffer
- input FAST dataoffset
- the number of bytes from the beginning of the byte array to skip
FastException
- if decoding failedpublic void decode(DecodeResult result, byte[] buffer) throws FastException
result
- decode result to fillbuffer
- an array of bytes that contains the source FAST stream chunk
FastException
- if decoding 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 |