public class JsXMLContentHandler extends JavaScriptBasedContentHandler
This handler expects JavaScript as template language and passes a special variable "xml" of type
XMLStructuredOutput
in. The name of this handler is xml-js the expected file extension is
.xml.js
Modifier and Type | Field and Description |
---|---|
static String |
XML_JS
Contains the name (type) of this handler
|
scriptEngine
Constructor and Description |
---|
JsXMLContentHandler() |
Modifier and Type | Method and Description |
---|---|
boolean |
generate(Generator generator,
OutputStream out)
Generates the appropriate output if the settings of the generator match.
|
int |
getPriority() |
execute, getEngine
public static final String XML_JS
public boolean generate(Generator generator, OutputStream out) throws Exception
ContentHandler
generator
- the generate settings given by the callerout
- the output stream used to write the generated content toException
- if an error occurs while generating contentpublic int getPriority()
Copyright © 2018. All rights reserved.