Note
this does not work when you jar things up! Use CommonGroupLoader instead in that case
| Modifier and Type | Field and Description |
|---|---|
| protected List | dirs
List of ':' separated dirs to pull groups from |
| protected StringTemplateErrorListener | |
| pack-priv String | fileCharEncoding
How are the files encoded (ascii, UTF8, ...)? |
| Access | Constructor and Description |
|---|---|
| public | |
| public | PathGroupLoader(String dirStr, StringTemplateErrorListener errors)
Pass a single dir or multiple dirs separated by colons from which to load groups/interfaces. |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public String | |
| protected InputStreamReader | |
| public StringTemplateGroup | loadGroup(String groupName, Class<T> templateLexer, StringTemplateGroup superGroup)
Implements org. |
| public StringTemplateGroup | loadGroup(String groupName, StringTemplateGroup superGroup)
Implements org. |
| public StringTemplateGroup | loadGroup(String groupName)
Implements org. |
| public StringTemplateGroupInterface | loadInterface(String interfaceName)
Implements org. |
| protected BufferedReader | |
| public void |
| dirs | back to summary |
|---|---|
| protected List<E> dirs List of ':' separated dirs to pull groups from | |
| errors | back to summary |
|---|---|
| protected StringTemplateErrorListener errors | |
| fileCharEncoding | back to summary |
|---|---|
| pack-priv String fileCharEncoding How are the files encoded (ascii, UTF8, ...)? You might want to read UTF8 for example on an ascii machine. | |
| PathGroupLoader | back to summary |
|---|---|
| public PathGroupLoader(StringTemplateErrorListener errors) | |
| PathGroupLoader | back to summary |
|---|---|
| public PathGroupLoader(String dirStr, StringTemplateErrorListener errors) Pass a single dir or multiple dirs separated by colons from which to load groups/interfaces. | |
| error | back to summary |
|---|---|
| public void error(String msg) | |
| error | back to summary |
|---|---|
| public void error(String msg, Exception e) | |
| getFileCharEncoding | back to summary |
|---|---|
| public String getFileCharEncoding() | |
| getInputStreamReader | back to summary |
|---|---|
| protected InputStreamReader getInputStreamReader(InputStream in) | |
| loadGroup | back to summary |
|---|---|
| public StringTemplateGroup loadGroup(String groupName, Class<T> templateLexer, StringTemplateGroup superGroup) Implements org. Load a group with a specified superGroup. Groups with region definitions must know their supergroup to find templates during parsing. | |
| loadGroup | back to summary |
|---|---|
| public StringTemplateGroup loadGroup(String groupName, StringTemplateGroup superGroup) Implements org. Doc from org. Load a group with a specified superGroup. Groups with region definitions must know their supergroup to find templates during parsing. | |
| loadGroup | back to summary |
|---|---|
| public StringTemplateGroup loadGroup(String groupName) Implements org. Doc from org. Load the group called groupName from somewhere. Return null if no group is found. | |
| loadInterface | back to summary |
|---|---|
| public StringTemplateGroupInterface loadInterface(String interfaceName) Implements org. Doc from org. Load the interface called interfaceName from somewhere. Return null if no interface is found. | |
| locate | back to summary |
|---|---|
| protected BufferedReader locate(String name) throws IOException Look in each directory for the file called 'name'. | |
| setFileCharEncoding | back to summary |
|---|---|
| public void setFileCharEncoding(String fileCharEncoding) | |