public class ResourceTemplateLoader extends Object implements freemarker.cache.TemplateLoader
Constructor and Description |
---|
ResourceTemplateLoader(ResourceLocator locator) |
Modifier and Type | Method and Description |
---|---|
void |
closeTemplateSource(Object templateSource) |
Object |
findTemplateSource(String name) |
long |
getLastModified(Object templateSource) |
ResourceLocator |
getLocator() |
Reader |
getReader(Object templateSource,
String encoding) |
void |
setLocator(ResourceLocator locator) |
public ResourceTemplateLoader(ResourceLocator locator)
public void setLocator(ResourceLocator locator)
public ResourceLocator getLocator()
public void closeTemplateSource(Object templateSource) throws IOException
closeTemplateSource
in interface freemarker.cache.TemplateLoader
IOException
public Object findTemplateSource(String name) throws IOException
findTemplateSource
in interface freemarker.cache.TemplateLoader
IOException
public long getLastModified(Object templateSource)
getLastModified
in interface freemarker.cache.TemplateLoader
public Reader getReader(Object templateSource, String encoding) throws IOException
getReader
in interface freemarker.cache.TemplateLoader
IOException
Copyright © 2015 Nuxeo SA. All rights reserved.