protected String toValString(Enumeration en){
  StringBuilder sb=new StringBuilder();
  boolean first=true;
  while (en.hasMoreElements()) {
    String val=(String)en.nextElement();
    val=encodeVal(val);
    if (first) {
      first=false;
    }
 else {
      sb.append(',');
    }
    sb.append(val);
  }
  return sb.toString();
}

protected String toValString ( Enumeration en ) { StringBuilder sb = new StringBuilder ( ) ; boolean first = true ; while ( en . hasMoreElements ( ) ) { String val = ( String ) en . nextElement ( ) ; val = encodeVal ( val ) ; if ( first ) { first = false ; } else { sb . append ( ',' ) ; } sb . append ( val ) ; } return sb . toString ( ) ; }
converts an enumeration of values for an attribute into a string , encoding special characters in the values as necessary . this is used by the modify ( ) method where the values needs to be in a particular order .
