Coverage Report - org.mule.transport.tcp.TcpInputStream
 
Classes in this File Line Coverage Branch Coverage Complexity
TcpInputStream
0%
0/5
N/A
1
 
 1  
 /*
 2  
  * $Id: TcpInputStream.java 19191 2010-08-25 21:05:23Z tcarlson $
 3  
  * --------------------------------------------------------------------------------------
 4  
  * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
 5  
  *
 6  
  * The software in this package is published under the terms of the CPAL v1.0
 7  
  * license, a copy of which has been included with this distribution in the
 8  
  * LICENSE.txt file.
 9  
  */
 10  
 
 11  
 package org.mule.transport.tcp;
 12  
 
 13  
 import org.mule.model.streaming.DelegatingInputStream;
 14  
 
 15  
 import java.io.InputStream;
 16  
 
 17  
 /**
 18  
  * The {@link TcpMessageDispatcher} and the {@link TcpMessageReceiver} use this
 19  
  * class as the input parameter to the read() method on the {@link TcpProtocol}
 20  
  * interface. If you wish to simply use the InputStream as the message payload
 21  
  * that you're reading in, you just call tcpInputStream.setStreaming(true) so
 22  
  * that Mule knows to stop listening for more messages on that stream. 
 23  
  */
 24  
 public class TcpInputStream extends DelegatingInputStream
 25  
 {
 26  
     private boolean streaming;
 27  
     
 28  
     public TcpInputStream(InputStream delegate)
 29  
     {
 30  0
         super(delegate);
 31  0
     }
 32  
 
 33  
     public boolean isStreaming()
 34  
     {
 35  0
         return streaming;
 36  
     }
 37  
 
 38  
     public void setStreaming(boolean streaming)
 39  
     {
 40  0
         this.streaming = streaming;
 41  0
     }
 42  
 
 43  
 }
 44  
 
 45