Package httl.spi.loaders.resources

Examples of httl.spi.loaders.resources.StringResource


  public void add(String name, String source) {
    add(name, null, source);
  }
 
  public void add(String name, Locale locale, String source) {
    templates.put(getTemplateKey(name, locale), new StringResource(engine, name, locale, STRING_ENCODING, System.currentTimeMillis(), source));
  }
View Full Code Here


  public List<String> list(String suffix) throws IOException {
    return new ArrayList<String>(templates.keySet());
  }

  public Resource load(String name, Locale locale, String encoding) throws IOException {
    StringResource resource = templates.get(getTemplateKey(name, locale));
    if (resource == null) {
      throw new FileNotFoundException("Not found template " + name);
    }
    return resource;
  }
View Full Code Here

TOP

Related Classes of httl.spi.loaders.resources.StringResource

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.