public class JavaScriptContentHandler extends JavaScriptBasedContentHandler
This handler expects JavaScript as template language. The name of this handler is js the expected file extension is .js
Modifier and Type | Field and Description |
---|---|
static String |
JS
Contains the name (type) of this handler
|
scriptEngine
Constructor and Description |
---|
JavaScriptContentHandler() |
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 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.