Class InputSourceEditor
java.lang.Object
java.beans.PropertyEditorSupport
org.springframework.beans.propertyeditors.InputSourceEditor
- All Implemented Interfaces:
PropertyEditor
Editor for
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.
- Since:
- 3.0.3
- Author:
- Juergen Hoeller
- See Also:
-
Constructor Summary
ConstructorDescriptionCreate a new InputSourceEditor, using the default ResourceEditor underneath.InputSourceEditor
(ResourceEditor resourceEditor) Create a new InputSourceEditor, using the given ResourceEditor underneath. -
Method Summary
Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, setValue, supportsCustomEditor
-
Constructor Details
-
InputSourceEditor
public InputSourceEditor()Create a new InputSourceEditor, using the default ResourceEditor underneath. -
InputSourceEditor
Create a new InputSourceEditor, using the given ResourceEditor underneath.- Parameters:
resourceEditor
- the ResourceEditor to use
-
-
Method Details
-
setAsText
- Specified by:
setAsText
in interfacePropertyEditor
- Overrides:
setAsText
in classPropertyEditorSupport
- Throws:
IllegalArgumentException
-
getAsText
- Specified by:
getAsText
in interfacePropertyEditor
- Overrides:
getAsText
in classPropertyEditorSupport
-