code: private void require(char delim) throws SAXException, IOException {
          char c = readCh();
  
          if (c != delim) {
              fatal("required character", c, Character.valueOf(delim).toString());
          }
      }
docs: Require a character to appear, or throw an exception.