| Constructor and Description |
|---|
ClasspathLoader() |
ClasspathLoader(ClassLoader classLoader) |
| Modifier and Type | Method and Description |
|---|---|
String |
getCharset() |
String |
getPrefix() |
Reader |
getReader(String templateName)
The reader which will be used by Pebble to read the contents of the
template.
|
String |
getSuffix() |
void |
setCharset(String charset)
A method for end users to change the charset used by the loader.
|
void |
setPrefix(String prefix)
Optional prefix to help find templates, ex "/WEB-INF/templates/" or
"database_schema."
|
void |
setSuffix(String suffix)
Optional suffix to help find templates, ex ".html", ".peb"
|
public ClasspathLoader(ClassLoader classLoader)
public ClasspathLoader()
public Reader getReader(String templateName) throws LoaderException
LoadergetReader in interface LoadertemplateName - Name of the templateLoaderException - If template can not be foundpublic String getSuffix()
public void setSuffix(String suffix)
Loaderpublic String getPrefix()
public void setPrefix(String prefix)
Loaderpublic String getCharset()
public void setCharset(String charset)
LoadersetCharset in interface Loadercharset - Character set used by the loader when building a reader objectCopyright © 2015. All rights reserved.