public class JSONGenerator extends Object
MetaBeans.
This implementation uses a freemarker template to generate the output.| Constructor and Description |
|---|
JSONGenerator() |
JSONGenerator(String templateName) |
JSONGenerator(freemarker.template.Template template) |
public JSONGenerator()
throws IOException
IOExceptionpublic JSONGenerator(String templateName) throws IOException
IOExceptionpublic JSONGenerator(freemarker.template.Template template)
public String toJSON(MetaBean metaBean) throws IOException, freemarker.template.TemplateException
IOExceptionfreemarker.template.TemplateExceptionpublic String toJSON(Collection<MetaBean> metaBeans) throws IOException, freemarker.template.TemplateException
IOExceptionfreemarker.template.TemplateExceptionpublic void toJSON(Collection<MetaBean> metaBeans, Writer out) throws IOException, freemarker.template.TemplateException
IOExceptionfreemarker.template.TemplateExceptionCopyright © 2010-2016 The Apache Software Foundation. All Rights Reserved.