| java.lang.Object com.sshtools.common.util.GeneralUtil
GeneralUtil | final public class GeneralUtil (Code) | | Other utilities not worth their own class
|
colorToString | public static String colorToString(Color color)(Code) | | Return a string representation of a color
Parameters: color - string representation |
encodeHTML | public static String encodeHTML(String html)(Code) | | This method will replace '&' with "&", '"' with """, '<' with "<" and '>' with ">".
Parameters: html - html to encode encoded html |
numberToPaddedHexString | public static String numberToPaddedHexString(int number, int size)(Code) | | Convert a number to a zero padded hex string
int number zero padded hex string throws: IllegalArgumentException - if number takes up more characters thansize |
stringToColor | public static Color stringToColor(String s)(Code) | | Return a Color object given a string representation of it
Parameters: color - string representation throws: IllegalArgumentException - if string in bad format |
|
|