public class FreeMarkerUtils
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
private static org.apache.commons.logging.Log |
log |
限定符 | 构造器和说明 |
---|---|
private |
FreeMarkerUtils() |
限定符和类型 | 方法和说明 |
---|---|
static void |
generateFileByFile(java.lang.String templateFilePath,
java.lang.String destFilePath,
freemarker.template.Configuration configuration,
java.util.Map<java.lang.String,java.lang.Object> model) |
static void |
generateFileByFile(java.lang.String templateFilePath,
java.lang.String destFilePath,
freemarker.template.Configuration configuration,
java.util.Map<java.lang.String,java.lang.Object> model,
boolean override) |
static void |
generateFileByFile(java.lang.String templateFilePath,
java.lang.String destFilePath,
freemarker.template.Configuration configuration,
java.util.Map<java.lang.String,java.lang.Object> model,
boolean override,
boolean append) |
static java.lang.String |
generateStringByFile(java.lang.String template,
freemarker.template.Configuration configuration) |
static java.lang.String |
generateStringByFile(java.lang.String template,
freemarker.template.Configuration configuration,
java.util.Map<java.lang.String,java.lang.Object> model) |
static void |
generateStringByFile(java.io.Writer writer,
java.lang.String template,
freemarker.template.Configuration configuration,
java.util.Map<java.lang.String,java.lang.Object> model) |
static java.lang.String |
generateStringByString(java.lang.String templateContent,
freemarker.template.Configuration configuration,
java.util.Map<java.lang.String,java.lang.Object> model) |
public static void generateFileByFile(java.lang.String templateFilePath, java.lang.String destFilePath, freemarker.template.Configuration configuration, java.util.Map<java.lang.String,java.lang.Object> model) throws java.io.IOException, freemarker.template.TemplateException
templateFilePath
- destFilePath
- configuration
- model
- java.io.IOException
freemarker.template.TemplateException
public static void generateFileByFile(java.lang.String templateFilePath, java.lang.String destFilePath, freemarker.template.Configuration configuration, java.util.Map<java.lang.String,java.lang.Object> model, boolean override) throws java.io.IOException, freemarker.template.TemplateException
templateFilePath
- destFilePath
- configuration
- model
- override
- java.io.IOException
freemarker.template.TemplateException
public static void generateFileByFile(java.lang.String templateFilePath, java.lang.String destFilePath, freemarker.template.Configuration configuration, java.util.Map<java.lang.String,java.lang.Object> model, boolean override, boolean append) throws java.io.IOException, freemarker.template.TemplateException
templateFilePath
- destFilePath
- configuration
- model
- override
- append
- java.io.IOException
freemarker.template.TemplateException
public static java.lang.String generateStringByFile(java.lang.String template, freemarker.template.Configuration configuration) throws java.io.IOException, freemarker.template.TemplateException
template
- configuration
- freemarker.template.TemplateException
java.io.IOException
public static java.lang.String generateStringByFile(java.lang.String template, freemarker.template.Configuration configuration, java.util.Map<java.lang.String,java.lang.Object> model) throws java.io.IOException, freemarker.template.TemplateException
template
- configuration
- model
- java.io.IOException
freemarker.template.TemplateException
public static void generateStringByFile(java.io.Writer writer, java.lang.String template, freemarker.template.Configuration configuration, java.util.Map<java.lang.String,java.lang.Object> model) throws java.io.IOException, freemarker.template.TemplateException
writer
- template
- configuration
- model
- java.io.IOException
freemarker.template.TemplateException
public static java.lang.String generateStringByString(java.lang.String templateContent, freemarker.template.Configuration configuration, java.util.Map<java.lang.String,java.lang.Object> model) throws java.io.IOException, freemarker.template.TemplateException
templateContent
- configuration
- model
- java.io.IOException
freemarker.template.TemplateException