示例#1
0
 private void initProperties(String p, java.lang.Boolean a, java.lang.Integer l, java.lang.Integer c)
 {
     base.initProperties("ALL", null, "java.util.logging.XMLFormatter",
         null);
     String className = this.getClass().getName();
     pattern = (null == p) ? getStringProperty(className + ".pattern",
         DEFAULT_PATTERN) : p;
     if (null == pattern || "".equals(pattern)) {
     // logging.19=Pattern cannot be empty
     throw new java.lang.NullPointerException("Pattern cannot be empty");
     }
     append = (null == a) ? getBooleanProperty(className + ".append",
         DEFAULT_APPEND) : a.booleanValue();
     count = (null == c) ? getIntProperty(className + ".count",
         DEFAULT_COUNT) : c.intValue();
     limit = (null == l) ? getIntProperty(className + ".limit",
         DEFAULT_LIMIT) : l.intValue();
     count = count < 1 ? DEFAULT_COUNT : count;
     limit = limit < 0 ? DEFAULT_LIMIT : limit;
     files = new java.io.File[count];
 }