static char readChar(IXMLReader reader,char entityChar) throws IOException, XMLParseException {
  String str=XMLUtil.read(reader,entityChar);
  char ch=str.charAt(0);
  if (ch == entityChar) {
    XMLUtil.errorUnexpectedEntity(reader.getSystemID(),reader.getLineNr(),str);
  }
  return ch;
}

static char readChar ( IXMLReader reader , char entityChar ) throws IOException , XMLParseException { String str = XMLUtil . read ( reader , entityChar ) ; char ch = str . charAt ( 0 ) ; if ( ch == entityChar ) { XMLUtil . errorUnexpectedEntity ( reader . getSystemID ( ) , reader . getLineNr ( ) , str ) ; } return ch ; }
reads a character from the reader disallowing entities .
