All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.spuchmann.xml.splitter.stax.XmlDocumentEventHandler Maven / Gradle / Ivy

The newest version!
package com.github.spuchmann.xml.splitter.stax;

import javax.xml.stream.XMLStreamException;
import javax.xml.stream.XMLStreamWriter;

/**
 * event handler which provides hooks inside the splitting process
 *
 * @since 0.1.0
 */
public interface XmlDocumentEventHandler {

    /**
     * will be called after the document and the xml header is written
     *
     * @since 0.2.0
     */
    void afterStartDocument(XMLStreamWriter streamWriter, SplitContext context) throws XMLStreamException;

    /**
     * will be called before the document ends and will be closed
     */
    void beforeEndDocument(XMLStreamWriter streamWriter) throws XMLStreamException;

    /**
     * will be called if the document is closed
     */
    void finishedDocument();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy