| Modifier and Type | Field and Description |
|---|---|
| protected boolean | |
| public String | fileName
Just records how user "spelled" the file name they wanted to load. |
| public URL | url
Where to find the group file. |
| Access | Constructor and Description |
|---|---|
| public | STGroupFile(String fileName)
Load a file relative to current directory or from root or via CLASSPATH. |
| public | |
| public | |
| public | STGroupFile(String fullyQualifiedFileName, String encoding, char delimiterStartChar, char delimiterStopChar)
|
| public | STGroupFile(URL url, String encoding, char delimiterStartChar, char delimiterStopChar)
Pass in a URL with the location of a group file. |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public String | |
| public URL | getRootDirURL()
Overrides org. |
| public boolean | isDefined(String name)
Overrides org. |
| public boolean | |
| protected synchronized CompiledST | load(String name)
Overrides org. |
| public synchronized void | |
| public String | |
| public synchronized void | unload()
Overrides org. |
| alreadyLoaded | back to summary |
|---|---|
| protected boolean alreadyLoaded | |
| fileName | back to summary |
|---|---|
| public String fileName Just records how user "spelled" the file name they wanted to load. The url is the key field here for loading content. If they use ctor with URL arg, this field is null. | |
| url | back to summary |
|---|---|
| public URL url Where to find the group file. NonNull. | |
| STGroupFile | back to summary |
|---|---|
| public STGroupFile(String fileName) Load a file relative to current directory or from root or via CLASSPATH. | |
| STGroupFile | back to summary |
|---|---|
| public STGroupFile(String fileName, char delimiterStartChar, char delimiterStopChar) | |
| STGroupFile | back to summary |
|---|---|
| public STGroupFile(String fullyQualifiedFileName, String encoding) | |
| STGroupFile | back to summary |
|---|---|
| public STGroupFile(String fullyQualifiedFileName, String encoding, char delimiterStartChar, char delimiterStopChar) | |
| STGroupFile | back to summary |
|---|---|
| public STGroupFile(URL url, String encoding, char delimiterStartChar, char delimiterStopChar) Pass in a URL with the location of a group file. E.g., STGroup g = new STGroupFile(loader.getResource("org/foo/templates/g.stg"), "UTF-8", '<', '>'); | |
| STGroupFile | back to summary |
|---|---|
| public STGroupFile(URL url) Convenience ctor | |
| getFileName | back to summary |
|---|---|
| public String getFileName() Overrides org.
| |
| getName | back to summary |
|---|---|
| public String getName() Overrides org.
| |
| getRootDirURL | back to summary |
|---|---|
| public URL getRootDirURL() Overrides org. Doc from org. Return root dir if this is group dir; return dir containing group file if this is group file. This is derived from original incoming dir or filename. If it was absolute, this should come back as full absolute path. If only a URL is available, return URL of one dir up.
| |
| isDefined | back to summary |
|---|---|
| public boolean isDefined(String name) Overrides org. Doc from org. Is this template defined in this group or from this group below?
Names must be absolute, fully-qualified names like
| |
| isDictionary | back to summary |
|---|---|
| public boolean isDictionary(String name) Overrides org.
| |
| load | back to summary |
|---|---|
| protected synchronized CompiledST load(String name) Overrides org. Doc from org. Load st from disk if directory or load whole group file if .stg file (then
return just one template).
| |
| load | back to summary |
|---|---|
| public synchronized void load() Overrides org. Doc from org. Force a load if it makes sense for the group.
| |
| show | back to summary |
|---|---|
| public String show() Overrides org.
| |
| unload | back to summary |
|---|---|
| public synchronized void unload() Overrides org. Doc from org. Unload all templates, dictionaries and import relationships, but leave
renderers and adaptors. This essentially forces the next call to
| |