public class ReaderEditor
extends java.beans.PropertyEditorSupport
java.io.Reader
, interpreting the given String as a Spring
resource location (e.g. a URL String).
Supports Spring-style URL notation: any fully qualified standard URL ("file:", "http:", etc.) and Spring's special "classpath:" pseudo-URL.
Note that such readers usually do not get closed by Spring itself!
Reader
,
ResourceEditor
,
ResourceLoader
,
InputStreamEditor
Constructor and Description |
---|
ReaderEditor()
Create a new ReaderEditor, using the default ResourceEditor underneath.
|
ReaderEditor(ResourceEditor resourceEditor)
Create a new ReaderEditor, using the given ResourceEditor underneath.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAsText()
This implementation returns
null to indicate that
there is no appropriate text representation. |
void |
setAsText(java.lang.String text) |
public ReaderEditor()
public ReaderEditor(ResourceEditor resourceEditor)
resourceEditor
- the ResourceEditor to usepublic void setAsText(java.lang.String text) throws java.lang.IllegalArgumentException
setAsText
in interface java.beans.PropertyEditor
setAsText
in class java.beans.PropertyEditorSupport
java.lang.IllegalArgumentException
@Nullable public java.lang.String getAsText()
null
to indicate that
there is no appropriate text representation.getAsText
in interface java.beans.PropertyEditor
getAsText
in class java.beans.PropertyEditorSupport