static String read(IXMLReader reader,char entityChar) throws IOException, XMLParseException {
  char ch=reader.read();
  StringBuffer buf=new StringBuffer();
  buf.append(ch);
  if (ch == entityChar) {
    while (ch != ';') {
      ch=reader.read();
      buf.append(ch);
    }
  }
  return buf.toString();
}

static String read ( IXMLReader reader , char entityChar ) throws IOException , XMLParseException { char ch = reader . read ( ) ; StringBuffer buf = new StringBuffer ( ) ; buf . append ( ch ) ; if ( ch == entityChar ) { while ( ch != ';' ) { ch = reader . read ( ) ; buf . append ( ch ) ; } } return buf . toString ( ) ; }
reads a character from the reader .
