public class

InputStreamEditor

extends PropertyEditorSupport
java.lang.Object
   ↳ java.beans.PropertyEditorSupport
     ↳ org.springframework.beans.propertyeditors.InputStreamEditor

Class Overview

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!

Summary

Public Constructors
InputStreamEditor()
Create a new InputStreamEditor, using the default ResourceEditor underneath.
InputStreamEditor(ResourceEditor resourceEditor)
Create a new InputStreamEditor, using the given ResourceEditor underneath.
Public Methods
String getAsText()
This implementation returns null to indicate that there is no appropriate text representation.
void setAsText(String text)
[Expand]
Inherited Methods
From class java.beans.PropertyEditorSupport
From class java.lang.Object
From interface java.beans.PropertyEditor

Public Constructors

public InputStreamEditor ()

Also: SpringBeans

Create a new InputStreamEditor, using the default ResourceEditor underneath.

public InputStreamEditor (ResourceEditor resourceEditor)

Create a new InputStreamEditor, using the given ResourceEditor underneath.

Parameters
resourceEditor the ResourceEditor to use

Public Methods

public String getAsText ()

This implementation returns null to indicate that there is no appropriate text representation.

public void setAsText (String text)