Package freemarker.cache
Interface SecureTemplateLoader
- All Superinterfaces:
TemplateLoader
- All Known Implementing Classes:
ClassTemplateLoader,FileTemplateLoader,MultiTemplateLoader,URLTemplateLoader,WebappTemplateLoader
A template loader that is able to provide a code source for the template.
-
Method Summary
Modifier and TypeMethodDescriptiongetCodeSource(Object templateSource) Returns a code source for a template source.Methods inherited from interface freemarker.cache.TemplateLoader
closeTemplateSource, findTemplateSource, getLastModified, getReader
-
Method Details
-
getCodeSource
Returns a code source for a template source.- Parameters:
templateSource- the template source for which a code source is requested.- Returns:
- the code source for the specified template source, or null if it can not be obtained
- Throws:
IOException- if an I/O exception occurs while trying to obtain the code source.
-