Class PropUtil

java.lang.Object
org.jvnet.mimepull.PropUtil

final class PropUtil extends Object
Utilities to make it easier to get property values. Properties can be strings or type-specific value objects.
  • Constructor Details

    • PropUtil

      private PropUtil()
  • Method Details

    • getBooleanSystemProperty

      public static boolean getBooleanSystemProperty(String name, boolean def)
      Get a boolean valued System property.
    • getProp

      private static Object getProp(Properties props, String name)
      Get the value of the specified property. If the "get" method returns null, use the getProperty method, which might cascade to a default Properties object.
    • getBoolean

      private static boolean getBoolean(Object value, boolean def)
      Interpret the value object as a boolean, returning def if unable.