Package net.sourceforge.jtpl

Examples of net.sourceforge.jtpl.Jtpl


public class Template {

  private Jtpl t;
 
  public Template(Reader template) throws IOException {
    t = new Jtpl(template);
  }
View Full Code Here


    t = new Jtpl(template);
  }

  public Template(String templateSource) {
    try {
      t = new Jtpl(new StringReader(templateSource));
    } catch (IOException e) {
      throw new RuntimeException(e); // should be impossible with StringReader
    }
  }
View Full Code Here

  }
 
  public Template(File templateFile) throws FileNotFoundException {
    FileReader r = new FileReader(templateFile);
    try {
      t = new Jtpl(templateFile);
    } catch (IOException e) {
      try {
        r.close();
      } catch (Exception nothingToDoAboutIt) {}
    }
View Full Code Here

TOP

Related Classes of net.sourceforge.jtpl.Jtpl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.