public class VelocityTemplate extends AbstractTemplate implements Serializable
| 构造器和说明 | 
|---|
| VelocityTemplate(org.apache.velocity.Template rawTemplate)构造 | 
| 限定符和类型 | 方法和说明 | 
|---|---|
| void | render(Map<?,?> bindingMap,
      OutputStream out)将模板与绑定参数融合后输出到流 | 
| void | render(Map<?,?> bindingMap,
      Writer writer)将模板与绑定参数融合后输出到Writer | 
| static VelocityTemplate | wrap(org.apache.velocity.Template template)包装Velocity模板 | 
render, renderpublic VelocityTemplate(org.apache.velocity.Template rawTemplate)
rawTemplate - Velocity模板对象public static VelocityTemplate wrap(org.apache.velocity.Template template)
template - Velocity的模板对象 TemplateVelocityTemplatepublic void render(Map<?,?> bindingMap, Writer writer)
Templatepublic void render(Map<?,?> bindingMap, OutputStream out)
TemplateCopyright © 2021. All rights reserved.