public class InputSourceEditor extends PropertyEditorSupport
org.xml.sax.InputSource
, converting from a
Spring resource location String to a SAX InputSource object.
Supports Spring-style URL notation: any fully qualified standard URL ("file:", "http:", etc) and Spring's special "classpath:" pseudo-URL.
InputSource
,
ResourceEditor
,
ResourceLoader
,
URLEditor
,
FileEditor
Constructor and Description |
---|
InputSourceEditor()
Create a new InputSourceEditor,
using the default ResourceEditor underneath.
|
InputSourceEditor(ResourceEditor resourceEditor)
Create a new InputSourceEditor,
using the given ResourceEditor underneath.
|
Modifier and Type | Method and Description |
---|---|
String |
getAsText() |
void |
setAsText(String text) |
addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, setValue, supportsCustomEditor
public InputSourceEditor()
public InputSourceEditor(ResourceEditor resourceEditor)
resourceEditor
- the ResourceEditor to usepublic void setAsText(String text) throws IllegalArgumentException
setAsText
in interface PropertyEditor
setAsText
in class PropertyEditorSupport
IllegalArgumentException
public String getAsText()
getAsText
in interface PropertyEditor
getAsText
in class PropertyEditorSupport