Code example for PipedOutputStream

0
public class TestStreamSenderAndStreamReceiver 
  extends AbstractSenderAndReceiverTests { 
 
  @Before public void setUp() throws Exception { 
 
    final PipedOutputStream outputStream = new PipedOutputStream(); 
    final InputStream inputStream = new BigBufferPipedInputStream(outputStream); 
 
    initialise(new StreamReceiver(inputStream), 
               new StreamSender(outputStream)); 
  } 
}