|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.dhmp.util.stylesheet.ScriptCollection
Container for parsed template. If the scripts is not in the container, it looks for the template on searching directories, parse and stock the result.
Constructor Summary | |
ScriptCollection(java.io.File rootDirectory)
Create a new ScriptCollection defining the directory where it looks for the template. |
|
ScriptCollection(java.io.File rootDirectory,
java.nio.charset.Charset cs)
Create a new ScriptCollection defining the directory where it looks for the template. |
|
ScriptCollection(java.io.File rootDirectory,
java.io.File[] alternateRootDirectory)
Create a new ScriptCollection defining the directory and alternate directories, where it looks for the template. |
|
ScriptCollection(java.io.File rootDirectory,
java.io.File[] alternateRootDirectory,
java.nio.charset.Charset cs)
Create a new ScriptCollection defining the directory and alternate directories, where it looks for the template. |
|
ScriptCollection(java.net.URL rootURL)
Create a new ScriptCollection defining the base url where it looks for the template. |
|
ScriptCollection(java.net.URL rootURL,
java.nio.charset.Charset cs)
Create a new ScriptCollection defining the base url where it looks for the template. |
|
ScriptCollection(java.net.URL rootURL,
java.net.URL[] alternateURL)
|
|
ScriptCollection(java.net.URL rootURL,
java.net.URL[] alternateURL,
java.nio.charset.Charset cs)
|
Method Summary | |
Script |
get(java.lang.String path)
Retrieves the parsed template. |
Script |
get(java.lang.String path,
java.nio.charset.Charset cs)
Retrieves the parsed template. |
Script |
get(java.net.URL url)
Retrieves the parsed template. |
Script |
get(java.net.URL url,
java.nio.charset.Charset cs)
Retrieves the parsed template. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ScriptCollection(java.net.URL rootURL)
rootURL
- base url where this container looks for the templatepublic ScriptCollection(java.net.URL rootURL, java.nio.charset.Charset cs)
rootURL
- base url where this container looks for the templatepublic ScriptCollection(java.net.URL rootURL, java.net.URL[] alternateURL)
public ScriptCollection(java.net.URL rootURL, java.net.URL[] alternateURL, java.nio.charset.Charset cs)
public ScriptCollection(java.io.File rootDirectory)
rootDirectory
- root directory where this container looks for the templatepublic ScriptCollection(java.io.File rootDirectory, java.nio.charset.Charset cs)
rootDirectory
- root directory where this container looks for the templatecs
- Charset to be used on reading script filepublic ScriptCollection(java.io.File rootDirectory, java.io.File[] alternateRootDirectory)
rootDirectory
- primary root directory where this container looks for the
templatealternateRootDirectory
- alternate root directories where this container looks for the
templatepublic ScriptCollection(java.io.File rootDirectory, java.io.File[] alternateRootDirectory, java.nio.charset.Charset cs)
rootDirectory
- primary root directory where this container looks for the
templatealternateRootDirectory
- alternate root directories where this container looks for the
templatecs
- Charset to be used on reading script fileMethod Detail |
public Script get(java.net.URL url) throws ParserException
url
- the URL for of template containing the script
java.io.IOException
- if IO exception occurs during template parsing
ParserException
- if syntax error found during template parsingpublic Script get(java.net.URL url, java.nio.charset.Charset cs) throws ParserException
url
- the URL for of template containing the script
java.io.IOException
- if IO exception occurs during template parsing
ParserException
- if syntax error found during template parsingpublic Script get(java.lang.String path) throws ParserException
path
- the path of template containing the script relative to the
root directory or to the alternate directories
java.io.IOException
- if IO exception occurs during template parsing
ParserException
- if syntax error found during template parsingpublic Script get(java.lang.String path, java.nio.charset.Charset cs) throws ParserException
path
- the path of template containing the script relative to the
root directory or to the alternate directories
java.io.IOException
- if IO exception occurs during template parsing
ParserException
- if syntax error found during template parsing
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |