|
Spring Framework | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.core.io.support.EncodedResource
public class EncodedResource
Holder that combines a 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.
Reader| Constructor Summary | |
|---|---|
EncodedResource(Resource resource)
Create a new EncodedResource for the given Resource, not specifying a specific encoding. |
|
EncodedResource(Resource resource,
java.lang.String encoding)
Create a new EncodedResource for the given Resource, using the specified encoding. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getEncoding()
Return the encoding to use for reading from the resource, or null if none specified. |
java.io.Reader |
getReader()
Open a java.io.Reader for the specified resource,
using the specified encoding (if any). |
Resource |
getResource()
Return the Resource held. |
int |
hashCode()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public EncodedResource(Resource resource)
resource - the Resource to hold
public EncodedResource(Resource resource,
java.lang.String encoding)
resource - the Resource to holdencoding - the encoding to use for reading from the resource| Method Detail |
|---|
public final Resource getResource()
public final java.lang.String getEncoding()
null if none specified.
public java.io.Reader getReader()
throws java.io.IOException
java.io.Reader for the specified resource,
using the specified encoding (if any).
java.io.IOException - if opening the Reader failedpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
Spring Framework | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||