public class InputStreamEditor extends PropertyEditorSupport
java.io.InputStream, interpreting the given String as a
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 such streams usually do not get closed by Spring itself!
InputStream,
ResourceEditor,
ResourceLoader,
URLEditor,
FileEditor| Constructor and Description |
|---|
InputStreamEditor()
Create a new InputStreamEditor, using the default ResourceEditor underneath.
|
InputStreamEditor(org.springframework.core.io.ResourceEditor resourceEditor)
Create a new InputStreamEditor, using the given ResourceEditor underneath.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAsText()
This implementation returns
null to indicate that
there is no appropriate text representation. |
void |
setAsText(String text) |
addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, setValue, supportsCustomEditorpublic InputStreamEditor()
public InputStreamEditor(org.springframework.core.io.ResourceEditor resourceEditor)
resourceEditor - the ResourceEditor to usepublic void setAsText(String text) throws IllegalArgumentException
setAsText in interface PropertyEditorsetAsText in class PropertyEditorSupportIllegalArgumentExceptionpublic String getAsText()
null to indicate that
there is no appropriate text representation.getAsText in interface PropertyEditorgetAsText in class PropertyEditorSupport