| java.lang.Object gov.nist.core.Utils
All known Subclasses: gov.nist.siplite.SIPUtils,
Utils | public class Utils (Code) | | A set of utilities that compensate for things that are missing in CLDC 1.0
version: 1.0 |
Method Summary | |
public static int | compareToIgnoreCase(String s1, String s2) Compares two strings lexicographically, ignoring case
considerations.
Parameters: s1 - string to compare Parameters: s2 - string to compare. | public static byte[] | digest(byte[] digestBytes) Do an MD5 Digest. | public static boolean | equalsIgnoreCase(String s1, String s2) Compares two strings lexicographically.
Parameters: s1 - string to compare Parameters: s2 - string to compare. | public static String | generateTag() Generate a tag for a FROM header or TO header. | public static String | getQuotedString(String str) Put quotes around a string and return it. | public static String | reduceString(String input) Squeeze out white space from a string and return the reduced
string.
Parameters: input - input string to sqeeze. | public static String | toHexString(byte b) |
compareToIgnoreCase | public static int compareToIgnoreCase(String s1, String s2)(Code) | | Compares two strings lexicographically, ignoring case
considerations.
Parameters: s1 - string to compare Parameters: s2 - string to compare. 1, -1, 0 as in compare To |
digest | public static byte[] digest(byte[] digestBytes)(Code) | | Do an MD5 Digest.
Parameters: digestBytes - input data MD5 hash value of the input data |
equalsIgnoreCase | public static boolean equalsIgnoreCase(String s1, String s2)(Code) | | Compares two strings lexicographically.
Parameters: s1 - string to compare Parameters: s2 - string to compare. 1,-1,0 as in compare To |
generateTag | public static String generateTag()(Code) | | Generate a tag for a FROM header or TO header. Just return a
random 4 digit integer (should be enough to avoid any clashes!)
a string that can be used as a tag parameter. |
getQuotedString | public static String getQuotedString(String str)(Code) | | Put quotes around a string and return it.
a quoted string Parameters: str - string to be quoted |
reduceString | public static String reduceString(String input)(Code) | | Squeeze out white space from a string and return the reduced
string.
Parameters: input - input string to sqeeze. String a reduced string. |
toHexString | public static String toHexString(byte b)(Code) | | convert an array of bytes to an hexadecimal string
a string Parameters: b - bytes array to convert to a hexadecimalstring |
|
|