public class JSONGenerator extends Object
MetaBean
s.
This implementation uses a freemarker template to generate the output.Constructor and Description |
---|
JSONGenerator() |
JSONGenerator(String templateName) |
JSONGenerator(freemarker.template.Template template) |
Modifier and Type | Method and Description |
---|---|
String |
toJSON(Collection<MetaBean> metaBeans) |
void |
toJSON(Collection<MetaBean> metaBeans,
Writer out) |
String |
toJSON(MetaBean metaBean) |
public JSONGenerator() throws IOException
IOException
public JSONGenerator(String templateName) throws IOException
IOException
public JSONGenerator(freemarker.template.Template template)
public String toJSON(MetaBean metaBean) throws IOException, freemarker.template.TemplateException
IOException
freemarker.template.TemplateException
public String toJSON(Collection<MetaBean> metaBeans) throws IOException, freemarker.template.TemplateException
IOException
freemarker.template.TemplateException
public void toJSON(Collection<MetaBean> metaBeans, Writer out) throws IOException, freemarker.template.TemplateException
IOException
freemarker.template.TemplateException
Copyright © 2010–2017 The Apache Software Foundation. All rights reserved.