org.szegedi.spring.core.io
Class PropertyResourceRepresentation

java.lang.Object
  extended by org.szegedi.spring.core.io.ResourceRepresentation
      extended by org.szegedi.spring.core.io.PropertyResourceRepresentation
Direct Known Subclasses:
BeanResourceRepresentation

public class PropertyResourceRepresentation
extends ResourceRepresentation

A resource representation that treats the resource as a Java properties file and represents the resource with a Properties object initialized with those properties.

Version:
$Id: $
Author:
Attila Szegedi

Constructor Summary
PropertyResourceRepresentation(org.springframework.core.io.Resource resource)
           
 
Method Summary
protected  java.lang.Object loadRepresentation(java.io.InputStream in)
          Implement in subclasses to load the representation of the resource.
 
Methods inherited from class org.szegedi.spring.core.io.ResourceRepresentation
getRepresentation, getRepresentation, getResource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyResourceRepresentation

public PropertyResourceRepresentation(org.springframework.core.io.Resource resource)
Method Detail

loadRepresentation

protected java.lang.Object loadRepresentation(java.io.InputStream in)
                                       throws java.io.IOException
Description copied from class: ResourceRepresentation
Implement in subclasses to load the representation of the resource.

Specified by:
loadRepresentation in class ResourceRepresentation
Parameters:
in - the input stream with resource bytes
Returns:
the object representing the resource.
Throws:
java.io.IOException