Simple interface for objects that are sources for an {@link InputStream}.
This is the base interface for Spring's more extensive {@link Resource} interface.
For single-use streams, {@link InputStreamResource} can be used for anygiven InputStream
. Spring's {@link ByteArrayResource} or anyfile-based Resource
implementation can be used as a concrete instance, allowing one to read the underlying content stream multiple times. This makes this interface useful as an abstract content source for mail attachments, for example.
@author Juergen Hoeller
@since 20.01.2004
@see java.io.InputStream
@see Resource
@see InputStreamResource
@see ByteArrayResource