Save This Page
Home » spring-framework-2.5.5-with-dependencies » org.springframework » core » io » support » [javadoc | source]
org.springframework.core.io.support
public class: EncodedResource [javadoc | source]
java.lang.Object
   org.springframework.core.io.support.EncodedResource
Holder that combines a org.springframework.core.io.Resource with a specific encoding to be used for reading from the resource.

Used as argument for operations that support to read content with a specific encoding (usually through a java.io.Reader.

Constructor:
 public EncodedResource(Resource resource) 
    Create a new EncodedResource for the given Resource, not specifying a specific encoding.
    Parameters:
    resource - the Resource to hold
 public EncodedResource(Resource resource,
    String encoding) 
    Create a new EncodedResource for the given Resource, using the specified encoding.
    Parameters:
    resource - the Resource to hold
    encoding - the encoding to use for reading from the resource
Method from org.springframework.core.io.support.EncodedResource Summary:
equals,   getEncoding,   getReader,   getResource,   hashCode,   toString
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.springframework.core.io.support.EncodedResource Detail:
 public boolean equals(Object obj) 
 public final String getEncoding() 
    Return the encoding to use for reading from the resource, or null if none specified.
 public Reader getReader() throws IOException 
    Open a java.io.Reader for the specified resource, using the specified encoding (if any).
 public final Resource getResource() 
    Return the Resource held.
 public int hashCode() 
 public String toString()