public class VelocityTemplate extends Object
| 构造器和说明 |
|---|
VelocityTemplate() |
| 限定符和类型 | 方法和说明 |
|---|---|
static org.apache.velocity.context.Context |
createContext() |
static String |
eval(org.apache.velocity.context.Context context,
String expression) |
static BufferedReader |
getTemplateReader(String template) |
static void |
merge(String templateName,
String encoding,
org.apache.velocity.context.Context context,
Writer writer) |
static String |
mergeAsString(String templateName,
org.apache.velocity.context.Context context) |
static String |
mergeAsString(String templateName,
String encoding,
org.apache.velocity.context.Context context) |
static void |
write(org.apache.velocity.context.Context context,
Writer writer,
Reader reader) |
static void |
write(org.apache.velocity.context.Context context,
Writer writer,
String template) |
public static BufferedReader getTemplateReader(String template) throws IOException
IOExceptionpublic static org.apache.velocity.context.Context createContext()
public static void write(org.apache.velocity.context.Context context,
Writer writer,
String template)
throws org.apache.velocity.exception.VelocityException
org.apache.velocity.exception.VelocityExceptionpublic static void write(org.apache.velocity.context.Context context,
Writer writer,
Reader reader)
throws org.apache.velocity.exception.VelocityException
org.apache.velocity.exception.VelocityExceptionpublic static String mergeAsString(String templateName, org.apache.velocity.context.Context context) throws org.apache.velocity.exception.VelocityException
org.apache.velocity.exception.VelocityExceptionpublic static String mergeAsString(String templateName, String encoding, org.apache.velocity.context.Context context) throws org.apache.velocity.exception.VelocityException
org.apache.velocity.exception.VelocityExceptionCopyright © 2025 fossc. All rights reserved.