public interface DataConsumer
Modifier and Type | Method and Description |
---|---|
org.xml.sax.ContentHandler |
createContentHandler()
Creates a content handler into which the input document can be
streamed thru the rendering pipe.
|
void |
runFromJAXBObject(java.lang.Object data)
Uses
JAXB to stream the object
data thru the rendering pipe. |
void |
runFromXML(java.lang.String fileName)
Streams the specified file thru the rendering pipe.
|
org.xml.sax.ContentHandler createContentHandler() throws org.xml.sax.SAXException
org.xml.sax.SAXException
void runFromJAXBObject(java.lang.Object data) throws javax.xml.bind.JAXBException, org.xml.sax.SAXException
JAXB
to stream the object
data
thru the rendering pipe.data
- A Java object annotated for JAXP processingjavax.xml.bind.JAXBException
org.xml.sax.SAXException
void runFromXML(java.lang.String fileName) throws org.xml.sax.SAXException, java.io.IOException, javax.xml.parsers.ParserConfigurationException
fileName
- The XML input documentorg.xml.sax.SAXException
java.io.IOException
javax.xml.parsers.ParserConfigurationException