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.
|
java.lang.Integer |
getDebugLevel()
Returns the debug level.
|
java.io.File |
getInputLogFile() |
void |
logInputToFile(java.io.File logFile,
boolean logOnly)
Specifies to log the input to an XML file.
|
boolean |
logOnly() |
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.
|
void |
setDebugLevel(java.lang.Integer level)
Sets the debug level as determined by the
level . |
org.xml.sax.ContentHandler createContentHandler() throws org.xml.sax.SAXException
org.xml.sax.SAXException
- if the handler can't be obtained due to an errorvoid 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
- if the serialization of the object failsorg.xml.sax.SAXException
- if processing the object's data failsvoid runFromXML(java.lang.String fileName) throws org.xml.sax.SAXException, java.io.IOException, javax.xml.parsers.ParserConfigurationException
fileName
- The XML input documentjava.io.IOException
- if reading the data failsorg.xml.sax.SAXException
- if processing data failsjavax.xml.parsers.ParserConfigurationException
- if parsing the data failsvoid setDebugLevel(java.lang.Integer level)
level
.
Only Messages with a message level lower or equal to level
will be displayed and logged.
There following six message levels are defined:
server
.level
- Messages with a level higher than this value will not be displayed or logged.java.lang.IllegalArgumentException
- if the level
is not in the range 0..9java.lang.Integer getDebugLevel()
setDebugLevel(java.lang.Integer)
void logInputToFile(java.io.File logFile, boolean logOnly)
logFile
- The location of the output filelogOnly
- Specifies to suppress any further processing of the inputjava.io.File getInputLogFile()
boolean logOnly()