@Override
    public void characters(char[] ch, int start, int length) throws SAXException {
        if (contentHandler != null) {
            contentHandler.characters(ch, start, length);
        } else {
            log(Severity.ERROR, LogUtil.message("Unexpected text node {} at position {}",
                    new String(ch, start, length), start), null);
        }

        super.characters(ch, start, length);
    }
Sets the locator to use when reporting errors.

@param locator The locator to use.
stroom-search/stroom-search-extraction/src/main/java/stroom/search/extraction/XPathExtractionOutputFilter.java