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 Known Implementing Classes:
StreamDataPipe.Pipe

public interface DataPipe<S,R>

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
 

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: