Class InputSourceEditor
- java.lang.Object
- java.beans.PropertyEditorSupport
- org.springframework.beans.propertyeditors.InputSourceEditor
- All Implemented Interfaces:
PropertyEditor
public class InputSourceEditor extends PropertyEditorSupport
Editor fororg.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:
InputSource
,ResourceEditor
,ResourceLoader
,URLEditor
,FileEditor
Constructor Summary
Constructors Constructor Description InputSourceEditor()
Create a new InputSourceEditor, using the default ResourceEditor underneath.InputSourceEditor(ResourceEditor resourceEditor)
Create a new InputSourceEditor, using the given ResourceEditor underneath.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAsText()
void
setAsText(String text)
Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, setValue, supportsCustomEditor
Constructor Detail
InputSourceEditor
public InputSourceEditor()
Create a new InputSourceEditor, using the default ResourceEditor underneath.
InputSourceEditor
public InputSourceEditor(ResourceEditor resourceEditor)
Create a new InputSourceEditor, using the given ResourceEditor underneath.- Parameters:
resourceEditor
- the ResourceEditor to use
Method Detail
setAsText
public void setAsText(String text) throws IllegalArgumentException
- Specified by:
setAsText
in interfacePropertyEditor
- Overrides:
setAsText
in classPropertyEditorSupport
- Throws:
IllegalArgumentException
getAsText
public String getAsText()
- Specified by:
getAsText
in interfacePropertyEditor
- Overrides:
getAsText
in classPropertyEditorSupport