public class InputStreamEditor
extends java.beans.PropertyEditorSupport
java.io.InputStream, interpreting the given String
as 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 in the default usage, the stream is not closed by Spring itself!
InputStream,
ResourceEditor,
ResourceLoader,
URLEditor,
FileEditor| Constructor and Description |
|---|
InputStreamEditor()
Create a new InputStreamEditor,
using the default ResourceEditor underneath.
|
InputStreamEditor(ResourceEditor resourceEditor)
Create a new InputStreamEditor,
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 InputStreamEditor()
public InputStreamEditor(ResourceEditor resourceEditor)
resourceEditor - the ResourceEditor to usepublic void setAsText(java.lang.String text)
throws java.lang.IllegalArgumentException
setAsText in interface java.beans.PropertyEditorsetAsText in class java.beans.PropertyEditorSupportjava.lang.IllegalArgumentExceptionpublic java.lang.String getAsText()
null to indicate that
there is no appropriate text representation.getAsText in interface java.beans.PropertyEditorgetAsText in class java.beans.PropertyEditorSupport