com.lyncode.jtwig.resource
Class ClasspathJtwigResource

java.lang.Object
  extended by com.lyncode.jtwig.resource.ClasspathJtwigResource
All Implemented Interfaces:
JtwigResource

public class ClasspathJtwigResource
extends Object
implements JtwigResource


Constructor Summary
ClasspathJtwigResource(String resource)
           
 
Method Summary
 JtwigResource resolve(String relativePath)
           
 InputStream retrieve()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClasspathJtwigResource

public ClasspathJtwigResource(String resource)
Method Detail

retrieve

public InputStream retrieve()
                     throws ResourceException
Specified by:
retrieve in interface JtwigResource
Throws:
ResourceException

resolve

public JtwigResource resolve(String relativePath)
                      throws ResourceException
Specified by:
resolve in interface JtwigResource
Throws:
ResourceException


Copyright © 2014. All Rights Reserved.