private void write(char ch) throws Exception {
  buffer.write(result);
  buffer.clear();
  result.write(ch);
}

private void write ( char ch ) throws Exception { buffer . write ( result ) ; buffer . clear ( ) ; result . write ( ch ) ; }
this is used to write a character 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 .
