public class JTransformer
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static boolean |
DEBUG |
Constructor and Description |
---|
JTransformer() |
JTransformer(java.io.File templateFile) |
JTransformer(java.io.InputStream is) |
JTransformer(JNode template) |
JTransformer(java.lang.String jsonText) |
Modifier and Type | Method and Description |
---|---|
JNode |
process(java.io.File documentFile)
Transforms document.
|
JNode |
process(java.io.InputStream is)
Transforms document.
|
JNode |
process(JNode jNode)
Transforms document.
|
JNode |
process(java.lang.String jsonText)
Transforms document.
|
protected static final boolean DEBUG
public JTransformer()
public JTransformer(JNode template)
template
- document for transformation.public JTransformer(java.io.File templateFile)
templateFile
- file with template for transformation.public JTransformer(java.io.InputStream is)
is
- input stream to template.public JTransformer(java.lang.String jsonText)
jsonText
- templatepublic JNode process(JNode jNode)
jNode
- document to process.public JNode process(java.io.File documentFile) throws java.io.IOException, JParserException
documentFile
- document to process.java.io.IOException
- reading file exceptionJParserException
- parsing exceptionpublic JNode process(java.io.InputStream is) throws java.io.IOException, JParserException
is
- document to process.java.io.IOException
- reading file exceptionJParserException
- parsing exceptionpublic JNode process(java.lang.String jsonText) throws java.io.IOException, JParserException
jsonText
- document to process.java.io.IOException
- reading file exceptionJParserException
- parsing exception