Save This Page
Home » j2ssh-0.2.9-src » com.sshtools.common.util » [javadoc | source]
com.sshtools.common.util
public final class: GeneralUtil [javadoc | source]
java.lang.Object
   com.sshtools.common.util.GeneralUtil
Other utilities not worth their own class
Method from com.sshtools.common.util.GeneralUtil Summary:
colorToString,   encodeHTML,   numberToPaddedHexString,   stringToColor
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.sshtools.common.util.GeneralUtil Detail:
 public static String colorToString(Color color) 
    Return a string representation of a color
 public static String encodeHTML(String html) 
    This method will replace '&' with "&", '"' with """, '<' with "<" and '>' with ">".
 public static String numberToPaddedHexString(int number,
    int size) 
    Convert a number to a zero padded hex string
 public static Color stringToColor(String s) 
    Return a Color object given a string representation of it