public final class RawFIXUtil extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
RawFIXUtil.RawTags |
Modifier and Type | Field and Description |
---|---|
static DefaultRawTags |
DEFAULT_RAW_TAGS |
static byte[] |
PASSWORD_MASK |
Modifier and Type | Method and Description |
---|---|
static byte[] |
copyValue(byte[] message,
int valueStartIndex,
int length) |
static byte[] |
copyValueUsePool(byte[] message,
int valueStartIndex,
int length) |
static int |
countTagValueLength(byte[] buffer,
int seqStart) |
static RawFIXUtil.RawTags |
createRawTags(int[] rawTags)
Creates RawTags from array of int.
|
static RawFIXUtil.RawTags |
createRawTags(String rawTags)
Creates RawTags from string.
|
static int |
fieldListObjectsCreated() |
static int |
fieldObjectsCreated() |
static int |
findMsgLengthWithMaskTags(byte[] message,
int length,
Set<Integer> maskTagsSet) |
static int |
findValueStartMaskTag(byte[] message,
int offset,
int length,
Set<Integer> maskTagsSet) |
static List<byte[]> |
getAllRawValues(byte[] buffer,
int offset,
int length,
int tag)
Gets the value from buffer as bytes.
|
static int |
getChecksum(byte[] bytes)
Calculates checksum in array of bytes.
|
static int |
getChecksum(byte[][] bytes,
int offset,
int length)
Calculates checksum in matrix of bytes.
|
static int |
getChecksum(byte[] bytes,
int offset,
int length)
Calculates checksum in array of bytes.
|
static FIXFieldList |
getFIXFieldList(byte[] message)
Parses fix message from array of bytes.
|
static FIXFieldList |
getFIXFieldList(byte[] message,
boolean usePool,
boolean isUserOwned) |
static FIXFieldList |
getFIXFieldList(byte[] message,
int[] rawTags)
Parses fix message from array of bytes.
|
static FIXFieldList |
getFIXFieldList(byte[] buffer,
int messageOffset,
int messageLength) |
static FIXFieldList |
getFIXFieldList(byte[] message,
int messageOffset,
int messageLength,
int[] rawTags)
Parses fix message from array of bytes.
|
static FIXFieldList |
getFIXFieldList(byte[] message,
int messageOffset,
int messageLength,
RawFIXUtil.RawTags rawTags) |
static FIXFieldList |
getFIXFieldList(byte[] message,
int messageOffset,
int messageLength,
RawFIXUtil.RawTags rawTags,
boolean allocateFromPool,
boolean isUserOwned)
Parses fix message from array of bytes.
|
static FIXFieldList |
getFIXFieldList(byte[] message,
RawFIXUtil.RawTags rawTags) |
static FIXFieldList |
getFIXFieldList(FIXFieldList list,
byte[] message,
int messageOffset,
int messageLength,
RawFIXUtil.RawTags rawTags) |
static FIXFieldList |
getFIXFieldList(FIXFieldList list,
byte[] message,
int messageOffset,
int messageLength,
RawFIXUtil.RawTags rawTags,
boolean clearTheMessageBeforeUse) |
static FIXFieldList |
getFIXFieldList(FIXFieldList target,
MsgBuf buf,
RawFIXUtil.RawTags rawTags,
boolean clearTheMessageBeforeUse) |
static FIXFieldList |
getFIXFieldList(MsgBuf buf) |
static FIXFieldList |
getFIXFieldList(MsgBuf buf,
RawFIXUtil.RawTags rawTags) |
static FIXFieldList |
getFIXFieldList(String message) |
static FIXFieldList |
getFIXFieldListUntilTagsExists(byte[] message,
int messageOffset,
int messageLength,
RawFIXUtil.RawTags rawTags)
Parses fix message from array of bytes.
|
static FIXFieldList |
getFIXFieldListUtilTagsExists(byte[] message)
Parses fix message from array of bytes.
|
static long |
getLongValue(byte[] buffer,
int offset,
int length,
int tag)
Gets the value from buffer as long.
|
static long |
getLongValue(byte[] buffer,
int offset,
int length,
int tag,
boolean searchFromStart)
Gets the value from buffer as long.
|
static byte[] |
getMessageType(byte[] bytes)
Gets the message type.
|
static byte[] |
getMessageType(byte[] bytes,
int offset,
int length)
Gets the message type.
|
static String |
getMsgType(IndexedStorage msg) |
static int |
getRawTagLengthFromPreviousField(FIXFieldList list) |
static byte[] |
getRawValue(byte[] buffer,
int offset,
int length,
int tag)
Gets the value from buffer as bytes.
|
static byte[] |
getRawValue(byte[] buffer,
int offset,
int length,
int tag,
boolean searchFromStart)
Gets the value from buffer as bytes.
|
static long |
getSequenceNumber(byte[] message)
Gets sequence number.
|
static long |
getSequenceNumber(byte[] message,
int offset,
int length)
Gets sequence number.
|
static int |
getStartValueFromEndBuffer(byte[] buffer,
int offset,
int length,
int tagId) |
static int |
getStartValueFromStartBuffer(byte[] buffer,
int offset,
int length,
int tagId) |
static FIXFieldList |
indexRepeatingGroup(FIXFieldList msg)
Creates index by dictionary for repeating group.
|
static FIXFieldList |
indexRepeatingGroup(FIXFieldList msg,
boolean validation)
Creates index by dictionary for repeating group.
|
static FIXFieldList |
indexRepeatingGroup(FIXFieldList msg,
FIXVersion version,
boolean validation) |
static FIXFieldList |
indexRepeatingGroup(FIXFieldList msg,
com.epam.fixengine.configuration.FIXVersionContainer version,
boolean validation) |
static FIXFieldList |
indexRepeatingGroup(FIXFieldList msg,
com.epam.fixengine.configuration.FIXVersionContainer version,
String msgType) |
static FIXFieldList |
indexRepeatingGroup(FIXFieldList msg,
com.epam.fixengine.configuration.FIXVersionContainer version,
String msgType,
boolean validation) |
static FIXFieldList |
indexRepeatingGroup(FIXFieldList msg,
FIXVersion version,
String msgType)
Creates index by dictionary for repeating group.
|
static FIXFieldList |
indexRepeatingGroup(FIXFieldList msg,
FIXVersion version,
String msgType,
boolean validation)
Creates index by dictionary for repeating group.
|
static boolean |
isLogon(byte[] msgType)
Checks if message type is Logon.
|
static boolean |
isLogon(byte[] msgType,
int length) |
static boolean |
isLogon(FIXFieldList fixFieldList)
Checks if message type is Logon.
|
static boolean |
isLogon(String msgType)
Checks if message type is Logon.
|
static boolean |
isMessageType(byte[] buffer,
int offset,
int length,
byte[] msgType) |
static boolean |
isMessageType(byte[] buffer,
int offset,
int length,
byte[][] msgTypes) |
static boolean |
isSessionLevelMessage(byte[] message)
Checks the message session level type.
|
static boolean |
isSessionLevelMessage(byte[] message,
int offset,
int length)
Checks the message session level type.
|
static boolean |
isSessionLevelMessage(FIXFieldList message) |
static boolean |
isSessionLevelType(byte[] msgType)
Checks the message session level type.
|
static boolean |
isSessionLevelType(byte[] msgType,
int length) |
static boolean |
isSessionLevelType(byte msgType,
int length) |
static boolean |
isSessionLevelType(String msgType)
Checks the message session level type.
|
static boolean |
isTagValueEquals(byte[] buffer,
int offset,
int length,
byte[][] expectedValues,
int tag,
boolean searchFromStart) |
static boolean |
isTagValueEquals(byte[] buffer,
int offset,
int length,
byte[] expectedValue,
int tag,
boolean searchFromStart) |
static boolean |
isWithinRawTags(int[] rawTags,
int tag)
Deprecated.
use RawFIXUtil.createRawTags() instead
|
static void |
returnObj(FIXField field) |
static void |
returnObj(FIXFieldList fieldList) |
public static final DefaultRawTags DEFAULT_RAW_TAGS
public static final byte[] PASSWORD_MASK
public static int getChecksum(byte[] bytes)
bytes
- - array of bytespublic static int getChecksum(byte[] bytes, int offset, int length)
bytes
- the array of bytesoffset
- the offset in array of byteslength
- the length of bytespublic static int getChecksum(byte[][] bytes, int offset, int length)
bytes
- the array of bytesoffset
- the offset in array of byteslength
- the length of bytespublic static byte[] getRawValue(byte[] buffer, int offset, int length, int tag)
buffer
- the buffer of bytesoffset
- the offset in bufferlength
- the buffer lengthtag
- the tag idpublic static byte[] getRawValue(byte[] buffer, int offset, int length, int tag, boolean searchFromStart)
buffer
- the buffer of bytesoffset
- the offset in bufferlength
- the buffer lengthtag
- the tag idsearchFromStart
- search from start or end of the given bufferpublic static List<byte[]> getAllRawValues(byte[] buffer, int offset, int length, int tag)
buffer
- the buffer of bytesoffset
- the offset in bufferlength
- the buffer lengthtag
- the tag idpublic static int getStartValueFromEndBuffer(byte[] buffer, int offset, int length, int tagId)
public static int getStartValueFromStartBuffer(byte[] buffer, int offset, int length, int tagId)
public static long getLongValue(byte[] buffer, int offset, int length, int tag)
buffer
- the buffer of bytesoffset
- the offset in bufferlength
- the buffer lengthtag
- the tag idRuntimeException
- if tag not existspublic static long getLongValue(byte[] buffer, int offset, int length, int tag, boolean searchFromStart)
buffer
- the buffer of bytesoffset
- the offset in bufferlength
- the buffer lengthtag
- the tag idsearchFromStart
- search from the start or end bufferRuntimeException
- if tag not existspublic static long getSequenceNumber(byte[] message)
message
- the buffer of bytesRuntimeException
- if tag not existspublic static long getSequenceNumber(byte[] message, int offset, int length)
message
- the buffer of bytesRuntimeException
- if tag not existspublic static FIXFieldList getFIXFieldList(byte[] buffer, int messageOffset, int messageLength)
public static FIXFieldList getFIXFieldList(MsgBuf buf)
public static FIXFieldList getFIXFieldList(MsgBuf buf, RawFIXUtil.RawTags rawTags)
public static FIXFieldList getFIXFieldList(FIXFieldList target, MsgBuf buf, RawFIXUtil.RawTags rawTags, boolean clearTheMessageBeforeUse)
public static FIXFieldList indexRepeatingGroup(FIXFieldList msg)
msg
- message for indexingpublic static String getMsgType(IndexedStorage msg)
public static FIXFieldList indexRepeatingGroup(FIXFieldList msg, boolean validation)
msg
- message for indexingvalidation
- turn on/off validationpublic static FIXFieldList indexRepeatingGroup(FIXFieldList msg, FIXVersion version, String msgType)
msg
- message for indexingversion
- version for passed message. Used for choose dictionary for indexing messagemsgType
- type of passed message. Used for indexing message.public static FIXFieldList indexRepeatingGroup(FIXFieldList msg, com.epam.fixengine.configuration.FIXVersionContainer version, String msgType)
public static FIXFieldList indexRepeatingGroup(FIXFieldList msg, FIXVersion version, String msgType, boolean validation)
msg
- message for indexingversion
- version for passed message. Used for choose dictionary for indexing messagemsgType
- type of passed message. Used for indexing message.validation
- turn on/off validationpublic static FIXFieldList indexRepeatingGroup(FIXFieldList msg, com.epam.fixengine.configuration.FIXVersionContainer version, String msgType, boolean validation)
public static FIXFieldList indexRepeatingGroup(FIXFieldList msg, FIXVersion version, boolean validation)
public static FIXFieldList indexRepeatingGroup(FIXFieldList msg, com.epam.fixengine.configuration.FIXVersionContainer version, boolean validation)
public static FIXFieldList getFIXFieldList(String message)
public static FIXFieldList getFIXFieldList(byte[] message)
message
- the buffer of bytesGarbledMessageException
- - if message is garbledpublic static FIXFieldList getFIXFieldList(byte[] message, boolean usePool, boolean isUserOwned)
public static FIXFieldList getFIXFieldListUtilTagsExists(byte[] message)
message
- the buffer of bytesGarbledMessageException
- - if message is garbledpublic static FIXFieldList getFIXFieldList(byte[] message, int[] rawTags)
message
- the buffer of bytesrawTags
- the raw tagsGarbledMessageException
- - if message is garbledpublic static FIXFieldList getFIXFieldList(byte[] message, RawFIXUtil.RawTags rawTags)
public static FIXFieldList getFIXFieldList(byte[] message, int messageOffset, int messageLength, int[] rawTags)
message
- the buffer of bytesrawTags
- the raw tagsGarbledMessageException
- - if message is garbledpublic static FIXFieldList getFIXFieldList(byte[] message, int messageOffset, int messageLength, RawFIXUtil.RawTags rawTags)
public static FIXFieldList getFIXFieldList(byte[] message, int messageOffset, int messageLength, RawFIXUtil.RawTags rawTags, boolean allocateFromPool, boolean isUserOwned)
message
- the buffer of bytesrawTags
- the raw tagsGarbledMessageException
- - if message is garbledpublic static FIXFieldList getFIXFieldList(FIXFieldList list, byte[] message, int messageOffset, int messageLength, RawFIXUtil.RawTags rawTags)
public static FIXFieldList getFIXFieldList(FIXFieldList list, byte[] message, int messageOffset, int messageLength, RawFIXUtil.RawTags rawTags, boolean clearTheMessageBeforeUse)
public static FIXFieldList getFIXFieldListUntilTagsExists(byte[] message, int messageOffset, int messageLength, RawFIXUtil.RawTags rawTags)
message
- the buffer of bytesrawTags
- the raw tagsGarbledMessageException
- - if message is garbledpublic static void returnObj(FIXField field)
public static void returnObj(FIXFieldList fieldList)
public static int fieldObjectsCreated()
public static int fieldListObjectsCreated()
public static byte[] copyValueUsePool(byte[] message, int valueStartIndex, int length)
public static byte[] copyValue(byte[] message, int valueStartIndex, int length)
public static int getRawTagLengthFromPreviousField(FIXFieldList list)
@Deprecated public static boolean isWithinRawTags(int[] rawTags, int tag)
rawTags
- the array of tagstag
- the tag idpublic static byte[] getMessageType(byte[] bytes)
bytes
- the messagepublic static byte[] getMessageType(byte[] bytes, int offset, int length)
bytes
- the messagepublic static boolean isSessionLevelMessage(byte[] message, int offset, int length)
message
- the fix messagepublic static boolean isMessageType(byte[] buffer, int offset, int length, byte[] msgType)
public static boolean isMessageType(byte[] buffer, int offset, int length, byte[][] msgTypes)
public static boolean isTagValueEquals(byte[] buffer, int offset, int length, byte[] expectedValue, int tag, boolean searchFromStart)
public static boolean isTagValueEquals(byte[] buffer, int offset, int length, byte[][] expectedValues, int tag, boolean searchFromStart)
public static boolean isSessionLevelMessage(byte[] message)
message
- the fix messagepublic static boolean isSessionLevelMessage(FIXFieldList message)
public static boolean isSessionLevelType(String msgType)
msgType
- the message typepublic static boolean isSessionLevelType(byte[] msgType)
msgType
- the fix messagepublic static boolean isSessionLevelType(byte[] msgType, int length)
public static boolean isSessionLevelType(byte msgType, int length)
public static boolean isLogon(String msgType)
msgType
- the message type, parameter must be not nullpublic static boolean isLogon(byte[] msgType)
msgType
- the message type, parameter must be not nullpublic static boolean isLogon(byte[] msgType, int length)
public static boolean isLogon(FIXFieldList fixFieldList)
fixFieldList
- fix field list, parameter must be not nullpublic static RawFIXUtil.RawTags createRawTags(int[] rawTags)
rawTags
- public static RawFIXUtil.RawTags createRawTags(String rawTags)
rawTags
- public static int countTagValueLength(byte[] buffer, int seqStart)
public static int findValueStartMaskTag(byte[] message, int offset, int length, Set<Integer> maskTagsSet)
Copyright © 2000–2022 EPAM Systems. All rights reserved.