/** Handles the string chunks collected in {@link #characters}. */ private void handleCharacters() throws SAXException { if (characters.length() == 0) { return; } try { checkStatus(); String text = characters.toString(); characters.setLength(0); if ((text != null) && !"".equals(text)) { ((XMLElementHandler) handlers.peek()).characters(text); } } catch (SAXException e) { logger.warning(e.toString()); throw e; } }
characters.setLength(0); checkStatus();