de.neuland.jade4j.template
Class ClasspathTemplateLoader

java.lang.Object
  extended by de.neuland.jade4j.template.ClasspathTemplateLoader
All Implemented Interfaces:
TemplateLoader

public class ClasspathTemplateLoader
extends Object
implements TemplateLoader

Loads a Jade template from Classpath It is useful when Jade templates are in the same JAR or WAR

Author:
emiguel

Constructor Summary
ClasspathTemplateLoader()
           
 
Method Summary
 String getEncoding()
           
 long getLastModified(String name)
           
 Reader getReader(String name)
           
 void setEncoding(String encoding)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClasspathTemplateLoader

public ClasspathTemplateLoader()
Method Detail

getLastModified

public long getLastModified(String name)
Specified by:
getLastModified in interface TemplateLoader

getReader

public Reader getReader(String name)
                 throws IOException
Specified by:
getReader in interface TemplateLoader
Throws:
IOException

getEncoding

public String getEncoding()

setEncoding

public void setEncoding(String encoding)


Copyright © 2013. All rights reserved.