java.lang.Object | |
↳ | org.springframework.core.io.support.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
.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a new EncodedResource for the given Resource,
not specifying a specific encoding.
| |||||||||||
Create a new EncodedResource for the given Resource,
using the specified encoding.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Return the encoding to use for reading from the resource,
or
null if none specified. | |||||||||||
Open a
java.io.Reader for the specified resource,
using the specified encoding (if any). | |||||||||||
Return the Resource held.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Create a new EncodedResource for the given Resource, not specifying a specific encoding.
resource | the Resource to hold |
---|
Create a new EncodedResource for the given Resource, using the specified encoding.
resource | the Resource to hold |
---|---|
encoding | the encoding to use for reading from the resource |
Return the encoding to use for reading from the resource,
or null
if none specified.
Open a java.io.Reader
for the specified resource,
using the specified encoding (if any).
IOException | if opening the Reader failed |
---|