|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.anthonyeden.lib.util.VelocityTool
A simple tool for parsing files which use the Velocity templating language.
Method Summary | |
static void |
parse(java.io.Reader reader,
java.io.Writer writer,
java.util.Map contextMap)
Pass all data from the given Reader through Velocity and write the resulting data to the given Writer. |
static java.lang.String |
parseInputStream(java.io.InputStream in)
Parse the InputStream. |
static java.lang.String |
parseInputStream(java.io.InputStream in,
java.util.Map contextMap)
Parse the text file at the given path. |
static java.lang.String |
parseTextFile(java.io.File file)
Parse the text file at the given path. |
static java.lang.String |
parseTextFile(java.io.File file,
java.util.Map contextMap)
Parse the text file. |
static java.lang.String |
parseTextFile(java.lang.String path)
Parse the text file at the given path. |
static java.lang.String |
parseTextFile(java.lang.String path,
java.util.Map contextMap)
Parse the text file at the given path. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static java.lang.String parseTextFile(java.lang.String path) throws java.lang.Exception
path
- The path
java.lang.Exception
public static java.lang.String parseTextFile(java.lang.String path, java.util.Map contextMap) throws java.lang.Exception
path
- The pathcontextMap
- The name/value variable pairs
java.lang.Exception
public static java.lang.String parseTextFile(java.io.File file) throws java.lang.Exception
file
- The File
java.lang.Exception
public static java.lang.String parseTextFile(java.io.File file, java.util.Map contextMap) throws java.lang.Exception
file
- The FilecontextMap
- The name/value variable pairs
java.lang.Exception
public static java.lang.String parseInputStream(java.io.InputStream in) throws java.lang.Exception
in
- The InputStream
java.lang.Exception
public static java.lang.String parseInputStream(java.io.InputStream in, java.util.Map contextMap) throws java.lang.Exception
in
- The input streamcontextMap
- The name/value variable pairs
java.lang.Exception
public static void parse(java.io.Reader reader, java.io.Writer writer, java.util.Map contextMap) throws java.lang.Exception
reader
- The readerwriter
- The writercontextMap
- The context map
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |