Simple interface for objects that are sources for an
InputStream .
This is the base interface for Spring's more extensive
Resource interface.
For single-use streams,
InputStreamResource can be used for any
given InputStream . Spring's
ByteArrayResource or any
file-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 Also: java.io.InputStream See Also: Resource See Also: InputStreamResource See Also: ByteArrayResource |