org.daisy.common.transform.DOMToXMLStreamTransformer Maven / Gradle / Ivy
package org.daisy.common.transform;
import java.util.function.Supplier;
import java.util.Iterator;
import org.daisy.common.stax.BaseURIAwareXMLStreamWriter;
import org.w3c.dom.Document;
/*
* Note that this interface does not extend javax.xml.transform.Transformer.
*/
public interface DOMToXMLStreamTransformer {
/**
* Transform a sequence of input documents to a sequence of output documents.
*
* @param input A sequence of DOM objects. Allowed to throw TransformerException.
* @param output A supplier of XMLStreamWriters. Allowed to throw TransformerException.
* @throws TransformerException
*/
public void transform(Iterator input, Supplier output) throws TransformerException;
}