org.apache.tuscany.sca.databinding
Interface DataPipe<S,R>

Type Parameters:
S - The data binding type of the sink
R - The data binding type of the result
All Superinterfaces:
Transformer

public interface DataPipe<S,R>
extends Transformer

Data pipe allows a data source pushes data into its sink and pipe the data into its result


Method Summary
 R getResult()
          Returns the data populated by the sink
 S getSink()
          Returns a sink (for example, java.io.OutputStream, java.io.Writer or org.xml.sax.ContentHandler) to receive data pushed by the source
 
Methods inherited from interface org.apache.tuscany.sca.databinding.Transformer
getSourceDataBinding, getTargetDataBinding, getWeight
 

Method Detail

getSink

S getSink()
Returns a sink (for example, java.io.OutputStream, java.io.Writer or org.xml.sax.ContentHandler) to receive data pushed by the source

Returns:
The sink to consume data

getResult

R getResult()
Returns the data populated by the sink

Returns: