|
spring-beans | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.beans.PropertyEditorSupport
org.springframework.beans.propertyeditors.InputStreamEditor
public class InputStreamEditor
One-way PropertyEditor which can convert from a text String to a
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 Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
java.lang.String |
getAsText()
This implementation returns null to indicate that
there is no appropriate text representation. |
void |
setAsText(java.lang.String text)
|
| Methods inherited from class java.beans.PropertyEditorSupport |
|---|
addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, setValue, supportsCustomEditor |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InputStreamEditor()
public InputStreamEditor(org.springframework.core.io.ResourceEditor resourceEditor)
resourceEditor - the ResourceEditor to use| Method Detail |
|---|
public 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
|
spring-beans | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||