private void write(char[] plain) throws Exception {
  buffer.write(result);
  buffer.clear();
  result.write(plain);
}

private void write ( char [ ] plain ) throws Exception { buffer . write ( result ) ; buffer . clear ( ) ; result . write ( plain ) ; }
this is used to write plain text to the output stream without any translation . this is used when writing the start tags and end tags , this is also used to write attribute names .
