java.lang.Object
com.github.hypfvieh.util.FixUtil
-
Feldübersicht
Felder -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic intcalculateFixBodyLength(String _msg) Calculates the body length of the given message.static intcalculateFixBodyLength(String _msg, char _delimiter) Calculates the body length of the given message.static StringcalculateFixCheckSum(String _msg, char _delim) Calculates the checksum of the message.static StringgetDelimiterFromFixMsgStr(String _line) Extract delimiter of FixMessageString.static StringgetFixTagValueFromString(String _msg, char _delimiter, int _tag) Get a value from a FixMessage String.static StringgetFixTagValueFromString(String _msg, int _tag) Get a value from a FixMessage String.static booleanlooksLikeFixMsg(String _msg) Checks if given String looks like a FIX message.static StringsetFixTagOnMsgStr(String _msg, int _tag, String _value) Tries to update a fix message by setting _tag to _value.static StringsetFixTagOnMsgStr(String _msg, int _tag, String _value, char _delim) Tries to update a fix message by setting _tag to _value.static StringupdateFixBodyLength(String _msg) Calculates the bodylength of a messages and writes it to tag 9.static StringupdateFixCheckSum(String _msg) Sets the correct checksum in tag 10.
-
Felddetails
-
FIX_DELIM
- Siehe auch:
-
-
Methodendetails
-
getDelimiterFromFixMsgStr
Extract delimiter of FixMessageString.- Parameter:
_line- line to read- Gibt zurück:
- delimiter or null
-
getFixTagValueFromString
Get a value from a FixMessage String.- Parameter:
_msg- string fix message to parse_delimiter- delimiter to use_tag- tag to find- Gibt zurück:
- value or null if tag could not be found
-
getFixTagValueFromString
Get a value from a FixMessage String.- Parameter:
_msg- fix message as string_tag- tag to read- Gibt zurück:
- value or null if tag could not be found
-
setFixTagOnMsgStr
Tries to update a fix message by setting _tag to _value. If _tag is not found, it is appended. This method also ensures that the header and trailer tags are in correct order.- Parameter:
_msg- fix message as string_tag- tag to write_value- value for tag- Gibt zurück:
- string with added/changed tag value
-
setFixTagOnMsgStr
Tries to update a fix message by setting _tag to _value. If _tag is not found, it is appended. This method also ensures that the header and trailer tags are in correct order.- Parameter:
_msg- fix message as string_tag- tag to write_value- value to set_delim- delimiter to use- Gibt zurück:
- string with added/changed tag value
-
calculateFixBodyLength
Calculates the body length of the given message.- Parameter:
_msg- fix message as string- Gibt zurück:
- checksum
-
calculateFixBodyLength
Calculates the body length of the given message.- Parameter:
_msg- fix message as string_delimiter- delimiter to use- Gibt zurück:
- body length
-
updateFixBodyLength
Calculates the bodylength of a messages and writes it to tag 9.- Parameter:
_msg- fix message as string- Gibt zurück:
- message with updated body length
-
calculateFixCheckSum
Calculates the checksum of the message.- Parameter:
_msg- fix message as string_delim- delimiter to use- Gibt zurück:
- checksum
-
updateFixCheckSum
Sets the correct checksum in tag 10.- Parameter:
_msg- fix message as string- Gibt zurück:
- fix message with updated checksum
-
looksLikeFixMsg
Checks if given String looks like a FIX message.- Parameter:
_msg- fix message as string- Gibt zurück:
- true if format matches a FIX message, false otherwise
-