public boolean isEndDocumentWasCalled() {
        return endDocumentCalled;
    }
Creates a decorator for the given SAX event handler.

@param handler SAX event handler to be decorated
tika-core/src/main/java/org/apache/tika/sax/EndDocumentShieldingContentHandler.java