public final String toString(){
  StringBuffer sb=new StringBuffer();
  if (getCodeset() != null) {
    if (doctype != null)     sb.append(doctype.toString(getCodeset()));
    sb.append(html.toString(getCodeset()));
    return (sb.toString());
  }
 else {
    if (doctype != null)     sb.append(doctype.toString());
    sb.append(html.toString());
    return (sb.toString());
  }
}

public final String toString ( ) { StringBuffer sb = new StringBuffer ( ) ; if ( getCodeset ( ) != null ) { if ( doctype != null ) sb . append ( doctype . toString ( getCodeset ( ) ) ) ; sb . append ( html . toString ( getCodeset ( ) ) ) ; return ( sb . toString ( ) ) ; } else { if ( doctype != null ) sb . append ( doctype . toString ( ) ) ; sb . append ( html . toString ( ) ) ; return ( sb . toString ( ) ) ; } }
override the tostring ( ) method so that it prints something meaningful .
