Code example for DefaultHandler

Methods: characters

    public void characters(char[] ch, int start, int length) throws SAXException {
        this.handler.characters(ch, start, length);
    public void exceptionThrown(Exception exception) {
        throw new Error("unexpected exception", exception);
    private void print(char ch, String name) {
        StringBuilder sb = new StringBuilder();
        for (int i = 0; i < this.depth; i++) sb.append(' ');
        sb.append(ch).append(' ').append(name);
Connect your IDE to all the code out there  Get Codota for Java