org.mule.transport.tcp.protocols
Class StreamingProtocol

java.lang.Object
  extended by org.mule.transport.tcp.protocols.AbstractByteProtocol
      extended by org.mule.transport.tcp.protocols.DirectProtocol
          extended by org.mule.transport.tcp.protocols.EOFProtocol
              extended by org.mule.transport.tcp.protocols.StreamingProtocol
All Implemented Interfaces:
TcpProtocol

public class StreamingProtocol
extends EOFProtocol
implements TcpProtocol


Field Summary
 
Fields inherited from class org.mule.transport.tcp.protocols.DirectProtocol
bufferSize, UNLIMITED
 
Fields inherited from class org.mule.transport.tcp.protocols.AbstractByteProtocol
EOF, NO_STREAM, STREAM_OK
 
Constructor Summary
StreamingProtocol()
           
 
Method Summary
protected  void copyStream(InputStream is, OutputStream os)
           
protected  int getLimit()
           
 Object read(InputStream is)
          Reads the input stream and returns a whole message.
 
Methods inherited from class org.mule.transport.tcp.protocols.EOFProtocol
isRepeat
 
Methods inherited from class org.mule.transport.tcp.protocols.DirectProtocol
read, remaining
 
Methods inherited from class org.mule.transport.tcp.protocols.AbstractByteProtocol
copy, copy, createResponse, isRethrowExceptionOnRead, nullEmptyArray, safeRead, safeRead, setRethrowExceptionOnRead, write, writeByteArray
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.mule.transport.tcp.TcpProtocol
createResponse, write
 

Constructor Detail

StreamingProtocol

public StreamingProtocol()
Method Detail

read

public Object read(InputStream is)
            throws IOException
Description copied from interface: TcpProtocol
Reads the input stream and returns a whole message.

Specified by:
read in interface TcpProtocol
Overrides:
read in class DirectProtocol
Parameters:
is - the input stream
Returns:
an array of byte containing a full message
Throws:
IOException - if an exception occurs

copyStream

protected void copyStream(InputStream is,
                          OutputStream os)
                   throws IOException
Parameters:
is -
os -
Throws:
IOException

getLimit

protected int getLimit()


Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.