public class MessageUtil extends Object
| Constructor and Description | 
|---|
| MessageUtil() | 
| Modifier and Type | Method and Description | 
|---|---|
| static String | computeChecksum(String str)Computes the checksum of the given string. | 
| static String | createFutureDate(int days,
                                int months)Creates a new date/time string presented in the SIP2 format
 "yyyyMMdd    HHmmss" by adding the given number of days and months
 to the current date. | 
| static String | getSipDateTime()Returns the current date and time in the format used in the
 SIP2 messages. | 
| static Date | parseSipDateTime(String dateStr)Parses the date and time from the given SIP2 formatted string. | 
| static String | toSipDateTime(Date date)Converts the given date to a SIP2 formatted date/time string. | 
public MessageUtil()
public static String computeChecksum(String str)
str - transmission stringpublic static String getSipDateTime()
public static Date parseSipDateTime(String dateStr)
dateStr - date and time in SIP2 formatpublic static String toSipDateTime(Date date)
date - date object to be convertedpublic static String createFutureDate(int days, int months)
days - number of days to be added to the current datemonths - number of months to be added to the current dateCopyright © 2004–2015 The Kuali Foundation. All rights reserved.