Example #1
0
 private static final void appendProp(
     StringBuffer sb, String key, Properties pp, boolean appendHash) {
   Object val = pp.get(key);
   if (val != null) {
     String strVal = val.toString();
     if (strVal.length() > 0) {
       sb.append(key);
       sb.append('=');
       sb.append(val);
       if (appendHash) {
         sb.append('#');
       }
     }
   }
 }