public String write(Object value) throws Exception {
  int length=Array.getLength(value);
  if (entry == char.class) {
    char[] array=(char[])value;
    return new String(array);
  }
  return write(value,length);
}

public String write ( Object value ) throws Exception { int length = Array . getLength ( value ) ; if ( entry == char . class ) { char [ ] array = ( char [ ] ) value ; return new String ( array ) ; } return write ( value , length ) ; }
this method is used to convert the provided value into an xml usable format . this is used in the serialization process when there is a need to convert a field value in to a string so that that value can be written as a valid xml entity .
