| Modifier and Type | Field and Description |
|---|---|
| pack-priv StringBuffer | |
| pack-priv static boolean | |
| pack-priv static String | |
| pack-priv static Map |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv int[] | findTemplate(String name)
Find the starting (inclusive) and ending (exclusive) index of the named template and return them as a two element int []. |
| public static String | |
| public static String | |
| public static SimpleTemplate | |
| private void | |
| public static void | |
| public void | |
| public static void | |
| public String | |
| public void | |
| public void |
| buff | back to summary |
|---|---|
| pack-priv StringBuffer buff | |
| cacheTemplates | back to summary |
|---|---|
| pack-priv static boolean cacheTemplates | |
| NO_TEMPLATE | back to summary |
|---|---|
| pack-priv static String NO_TEMPLATE | |
| templateData | back to summary |
|---|---|
| pack-priv static Map<K, V> templateData | |
| SimpleTemplate | back to summary |
|---|---|
| public SimpleTemplate(String template) | |
| SimpleTemplate | back to summary |
|---|---|
| public SimpleTemplate(Reader reader) throws IOException | |
| SimpleTemplate | back to summary |
|---|---|
| public SimpleTemplate(URL url) throws IOException | |
| findTemplate | back to summary |
|---|---|
| pack-priv int[] findTemplate(String name) Find the starting (inclusive) and ending (exclusive) index of the named template and return them as a two element int []. Or return null if the param is not found. | |
| getStringFromStream | back to summary |
|---|---|
| public static String getStringFromStream(InputStream ins) throws IOException | |
| getStringFromStream | back to summary |
|---|---|
| public static String getStringFromStream(Reader reader) throws IOException | |
| getTemplate | back to summary |
|---|---|
| public static SimpleTemplate getTemplate(String file) Get a template by name, with caching. Note this should be updated to search the resource path first, etc. Create a new instance of a template from the specified file. The file text is cached so lookup is fast. Failure to find the file is also cached so the read will not happen twice. | |
| init | back to summary |
|---|---|
| private void init(String s) | |
| main | back to summary |
|---|---|
| public static void main(String[] args) throws IOException usage: filename param value | |
| replace | back to summary |
|---|---|
| public void replace(String param, String value) Substitute the specified text for the parameter | |
| setCacheTemplates | back to summary |
|---|---|
| public static void setCacheTemplates(boolean b) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
| |
| write | back to summary |
|---|---|
| public void write(PrintWriter out) | |
| write | back to summary |
|---|---|
| public void write(PrintStream out) | |