|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbiz.onixs.fix.fastnew.Decoder
public class Decoder
FAST-to-FIX Decoder.
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 | |
---|---|
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. |
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()
|
void |
reset()
Resets the state of the previous values dictionaries (sets the state of the previous values to undefined). |
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. |
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 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 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 |