com.ibm.portal.resolver.data
Interface ByteDataSink

All Superinterfaces:
DataSink, Disposable

public interface ByteDataSink
extends DataSink

Implemented by comsumers of byte data streams. The stream handler can read the data from the input stream. The handler return an optional reference to a DataSource that can be used to express the return value of the operation.

Since:
6.1.0
Note:
This interface is designed to be implemented by clients.

Method Summary
 DataSource read(java.io.InputStream in, java.lang.String mimeType)
          Handles the data input and optionally returns a DataSource that represents the response
 
Methods inherited from interface com.ibm.portal.Disposable
dispose
 

Method Detail

read

DataSource read(java.io.InputStream in,
                java.lang.String mimeType)
                throws java.io.IOException
Handles the data input and optionally returns a DataSource that represents the response

Parameters:
in - the input stream to the data , not null
mimeType - the mime type of the content in the stream, not null
Returns:
the data source that represents the response. May be null to indicate that the response does not provide content.
Throws:
java.io.IOException - if the data cannot be processed