Class InputStreamEditor
java.lang.Object
java.beans.PropertyEditorSupport
org.springframework.beans.propertyeditors.InputStreamEditor
- All Implemented Interfaces:
- PropertyEditor
One-way PropertyEditor which can convert from a text String to a
 
java.io.InputStream, interpreting the given String as a
 Spring resource location (for example, 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 streams usually do not get closed by Spring itself!
- Since:
- 1.0.1
- Author:
- Juergen Hoeller
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionCreate a new InputStreamEditor, using the default ResourceEditor underneath.InputStreamEditor(ResourceEditor resourceEditor) Create a new InputStreamEditor, using the given ResourceEditor underneath.
- 
Method SummaryMethods inherited from class java.beans.PropertyEditorSupportaddPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, setValue, supportsCustomEditor
- 
Constructor Details- 
InputStreamEditorpublic InputStreamEditor()Create a new InputStreamEditor, using the default ResourceEditor underneath.
- 
InputStreamEditorCreate a new InputStreamEditor, using the given ResourceEditor underneath.- Parameters:
- resourceEditor- the ResourceEditor to use
 
 
- 
- 
Method Details- 
setAsText- Specified by:
- setAsTextin interface- PropertyEditor
- Overrides:
- setAsTextin class- PropertyEditorSupport
- Throws:
- IllegalArgumentException
 
- 
getAsTextThis implementation returnsnullto indicate that there is no appropriate text representation.- Specified by:
- getAsTextin interface- PropertyEditor
- Overrides:
- getAsTextin class- PropertyEditorSupport
 
 
-