org.jboss.seam.render.template.resource
Class InputStreamTemplateResource

java.lang.Object
  extended by org.jboss.seam.render.template.resource.InputStreamTemplateResource
All Implemented Interfaces:
TemplateResource<InputStream>

public class InputStreamTemplateResource
extends Object
implements TemplateResource<InputStream>

Author:
Lincoln Baxter, III

Constructor Summary
InputStreamTemplateResource(InputStream template)
           
InputStreamTemplateResource(InputStream template, String path)
           
InputStreamTemplateResource(TemplateResolver<InputStream> resolvedBy, InputStream template, String path)
           
 
Method Summary
 InputStream getInputStream()
          Get the underlying data for this TemplateResource in the form of an InputStream.
 long getLastModified()
          Get the last modified time of this resource.
 String getPath()
          Get the unique path at which this resource can be located.
 TemplateResolver<InputStream> getResolvedBy()
          Get the TemplateResolver with which this TemplateResource was resolved.
 InputStream getUnderlyingResource()
          Get the underlying T resource object for this TemplateResource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InputStreamTemplateResource

public InputStreamTemplateResource(TemplateResolver<InputStream> resolvedBy,
                                   InputStream template,
                                   String path)

InputStreamTemplateResource

public InputStreamTemplateResource(InputStream template,
                                   String path)

InputStreamTemplateResource

public InputStreamTemplateResource(InputStream template)
Method Detail

getPath

public String getPath()
Description copied from interface: TemplateResource
Get the unique path at which this resource can be located. A resource with a null path cannot be located by the TemplateResolverFactory.

Specified by:
getPath in interface TemplateResource<InputStream>

getInputStream

public InputStream getInputStream()
Description copied from interface: TemplateResource
Get the underlying data for this TemplateResource in the form of an InputStream.

Specified by:
getInputStream in interface TemplateResource<InputStream>

getLastModified

public long getLastModified()
Description copied from interface: TemplateResource
Get the last modified time of this resource. If zero, the last modified time is not available.

Specified by:
getLastModified in interface TemplateResource<InputStream>

getUnderlyingResource

public InputStream getUnderlyingResource()
Description copied from interface: TemplateResource
Get the underlying T resource object for this TemplateResource

Specified by:
getUnderlyingResource in interface TemplateResource<InputStream>

getResolvedBy

public TemplateResolver<InputStream> getResolvedBy()
Description copied from interface: TemplateResource
Get the TemplateResolver with which this TemplateResource was resolved.

Specified by:
getResolvedBy in interface TemplateResource<InputStream>


Copyright © 2011 Seam Framework. All Rights Reserved.