com.ibm.portal.resolver.data
Interface MultipartDataSink
- All Superinterfaces:
- DataSink, Disposable
public interface MultipartDataSink
- extends DataSink
Data sink that accepts a multipart data request. Refer to
MultipartInputStream
for more information how to use the input stream
to access the individual parts.
In case any of the multipart parts in turn also contains multipart content,
new MultipartInputStream
instances can be constructed via the
StreamFactory
to parse this content.
- Since:
- 6.0.1
- Note:
This interface is designed to be implemented by clients. |
read
DataSource read(MultipartInputStream in,
java.lang.String mimeType)
throws java.io.IOException
- Reads the given multipart input stream and based on this information
generates a
DataSource
object that represents the response.
- Parameters:
in
- interface to the multipart input streammimeType
- mime-type of the input
- Returns:
- the data source that represents the result of the decoding
process
- Throws:
java.io.IOException
- - if an I/O exception occurs