org.springframework.beans.propertyeditors
Class InputStreamEditor
java.lang.Object
java.beans.PropertyEditorSupport
org.springframework.beans.propertyeditors.InputStreamEditor
- All Implemented Interfaces:
- PropertyEditor
- public class InputStreamEditor
- extends PropertyEditorSupport
One-way PropertyEditor, which can convert from a text string to an
InputStream, allowing InputStream properties to be set directly as
a text string. The string should be suitable for feeding to a
ResourceEditor, since this is what is actually used to produce a
Resource from the text, which is then asked for an InputStream.
Note that in the default usage the stream is not
closed by Spring itself!
- Since:
- 01.04.2004
- Author:
- Juergen Hoeller
Constructor Summary |
InputStreamEditor()
Create a new InputStreamEditor,
using the default ResourceEditor underneath. |
InputStreamEditor(ResourceEditor resourceEditor)
Create a new InputStreamEditor,
using the given ResourceEditor underneath. |
Methods inherited from class java.beans.PropertyEditorSupport |
addPropertyChangeListener, firePropertyChange, getAsText, getCustomEditor, getJavaInitializationString, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setValue, supportsCustomEditor |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InputStreamEditor
public InputStreamEditor()
- Create a new InputStreamEditor,
using the default ResourceEditor underneath.
InputStreamEditor
public InputStreamEditor(ResourceEditor resourceEditor)
- Create a new InputStreamEditor,
using the given ResourceEditor underneath.
- Parameters:
resourceEditor
- the ResourceEditor to use
setAsText
public void setAsText(String text)
throws IllegalArgumentException
- Throws:
IllegalArgumentException
Copyright (C) 2003-2004 The Spring Framework Project.