|
The Spring Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.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
, allowing InputStream properties
to be set directly as a text 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(ResourceEditor resourceEditor)
Create a new InputStreamEditor, using the given ResourceEditor underneath. |
Method Summary | |
---|---|
String |
getAsText()
This implementation returns null to indicate that
there is no appropriate text representation. |
void |
setAsText(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(ResourceEditor resourceEditor)
resourceEditor
- the ResourceEditor to useMethod Detail |
---|
public void setAsText(String text) throws IllegalArgumentException
setAsText
in interface PropertyEditor
setAsText
in class PropertyEditorSupport
IllegalArgumentException
public String getAsText()
null
to indicate that
there is no appropriate text representation.
getAsText
in interface PropertyEditor
getAsText
in class PropertyEditorSupport
|
The Spring Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |