org.apache.tuscany.sca.databinding.xml
Class StreamDataPipe.Pipe

java.lang.Object
  extended by org.apache.tuscany.sca.databinding.xml.StreamDataPipe.Pipe
All Implemented Interfaces:
DataPipe<java.io.OutputStream,java.io.InputStream>
Enclosing class:
StreamDataPipe

public static class StreamDataPipe.Pipe
extends java.lang.Object
implements DataPipe<java.io.OutputStream,java.io.InputStream>


Constructor Summary
StreamDataPipe.Pipe()
           
 
Method Summary
 java.io.InputStream getResult()
          Returns the data populated by the sink
 java.io.OutputStream 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 class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StreamDataPipe.Pipe

public StreamDataPipe.Pipe()
Method Detail

getResult

public java.io.InputStream getResult()
Description copied from interface: DataPipe
Returns the data populated by the sink

Specified by:
getResult in interface DataPipe<java.io.OutputStream,java.io.InputStream>
Returns:

getSink

public java.io.OutputStream getSink()
Description copied from interface: DataPipe
Returns a sink (for example, java.io.OutputStream, java.io.Writer or org.xml.sax.ContentHandler) to receive data pushed by the source

Specified by:
getSink in interface DataPipe<java.io.OutputStream,java.io.InputStream>
Returns:
The sink to consume data