Code example for ContentHandler

Methods: characters

0
        String s = new String(ch, start, length);
        if (!s.trim().isEmpty()) {
            content.append(s);
        } 
        if (contentHandler != null) {
            contentHandler.characters(ch, start, length);
        } 
    } 
 
    @Override 
    public void ignorableWhitespace(char[] ch, int start, int length) throws SAXException {
        if (contentHandler != null) {
            contentHandler.ignorableWhitespace(ch, start, length);
        } 
    } 
 
    @Override 
    public void processingInstruction(String target, String data) throws SAXException {
        if (contentHandler != null) {
            contentHandler.processingInstruction(target, data);
        }