Convert
Utility class supporting safe type casts, Base64 conversion, string capitalization, and date formatting.
Methods
static String toRealName(String str)
Capitalizes the first character of the string while leaving the remaining letters unchanged.
static String toBase64(String str)
Converts a standard text sequence into a Base64-encoded string representation using UTF-8 formatting.
static String fromBase64(String str)
Decodes a Base64-encoded string. Safe; prints stack trace and returns null if decoding fails.
static int toInt(String str) / toFloat(String str) / toDouble(String str)
Safe primitive conversion parsing functions. On numeric format exceptions, returns 0 without crashing.
Deprecated: dateToMMDDYY / dateToDDMMYY / dateToYYMMDD(Date date)
Legacy Date format conversion methods. Marked as deprecated due to dependencies on outdated java.util.Date components.