public final class FixUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static int |
calculateFixBodyLength(String _msg)
Calculates the body length of the given message.
|
static int |
calculateFixBodyLength(String _msg,
char _delimiter)
Calculates the body length of the given message.
|
static String |
calculateFixCheckSum(String _msg,
char _delim)
Calculates the checksum of the message.
|
static String |
getDelimiterFromFixMsgStr(String _line)
Extract delimiter of FixMessageString.
|
static String |
getFixTagValueFromString(String _msg,
char _delimiter,
int _tag)
Get a value from a FixMessage String.
|
static String |
getFixTagValueFromString(String _msg,
int _tag)
Get a value from a FixMessage String.
|
static boolean |
looksLikeFixMsg(String _msg)
Checks if given String looks like a FIX message.
|
static String |
setFixTagOnMsgStr(String _msg,
int _tag,
String _value)
Tries to update a fix message by setting _tag to _value.
|
static String |
setFixTagOnMsgStr(String _msg,
int _tag,
String _value,
char _delim)
Tries to update a fix message by setting _tag to _value.
|
static String |
updateFixBodyLength(String _msg)
Calculates the bodylength of a messages and writes it to tag 9.
|
static String |
updateFixCheckSum(String _msg)
Sets the correct checksum in tag 10.
|
public static String getDelimiterFromFixMsgStr(String _line)
_line - public static String getFixTagValueFromString(String _msg, char _delimiter, int _tag)
_msg - string fix message to parse_delimiter - delimiter to use_tag - tag to findpublic static String getFixTagValueFromString(String _msg, int _tag)
_msg - _tag - public static String setFixTagOnMsgStr(String _msg, int _tag, String _value)
_msg - _tag - _value - public static String setFixTagOnMsgStr(String _msg, int _tag, String _value, char _delim)
_msg - _tag - _value - _delim - public static int calculateFixBodyLength(String _msg)
_msg - public static int calculateFixBodyLength(String _msg, char _delimiter)
_msg - public static String updateFixBodyLength(String _msg)
_msg - public static String calculateFixCheckSum(String _msg, char _delim)
_msg - _delim - public static String updateFixCheckSum(String _msg)
_msg - public static boolean looksLikeFixMsg(String _msg)
_msg - Copyright © 2018. All rights reserved.