Package org.apache.cxf.attachment
Class LazyDataSource
java.lang.Object
org.apache.cxf.attachment.LazyDataSource
- All Implemented Interfaces:
DataSource
A DataSource which will search through a Collection of attachments so as to
lazily load the attachment from the collection. This allows streaming attachments
with databinding toolkits like JAXB.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
LazyDataSource
-
-
Method Details
-
getContentType
- Specified by:
getContentTypein interfaceDataSource
-
getInputStream
- Specified by:
getInputStreamin interfaceDataSource- Throws:
IOException
-
getName
- Specified by:
getNamein interfaceDataSource
-
getOutputStream
- Specified by:
getOutputStreamin interfaceDataSource- Throws:
IOException
-
getDataSource
-
setDataSource
-