Class PropertyUtil

java.lang.Object
com.sshtools.common.util.PropertyUtil

public class PropertyUtil extends Object
Version:
$Revision: 1.14 $
Author:
$author$
  • Constructor Details

    • PropertyUtil

      public PropertyUtil()
  • Method Details

    • stringToInt

      public static int stringToInt(String number, int defaultValue)
      Parameters:
      number -
      defaultValue -
      Returns:
    • colorToString

      public static String colorToString(Color color)
      Parameters:
      color -
      Returns:
    • fontToString

      public static String fontToString(Font font)
      Parameters:
      font -
      Returns:
    • stringToFont

      public static Font stringToFont(String fontString)
      Parameters:
      fontString -
      Returns:
    • stringToColor

      public static Color stringToColor(String s)
      Parameters:
      s -
      Returns:
      Throws:
      IllegalArgumentException
    • numberToPaddedHexString

      public static String numberToPaddedHexString(int number, int size)
      Parameters:
      number -
      size -
      Returns:
      Throws:
      IllegalArgumentException