public void stopBuffer(final ContentHandler contentHandler) throws SAXException {
        buffer = false;

        for (final Event event : events) {
            event.fire(contentHandler);
        }

        events = null;
    }
Stops buffering SAX events and fires all buffered events at the specified
content handler.
stroom-pipeline/src/test/java/stroom/pipeline/util/BufferFilter.java