StreamingProtocol (Mule ESB 2.2.1 API)
Keywords: org.mule.transport.tcp.protocols.StreamingProtocol class

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.mule.transport.tcp.protocols
Class StreamingProtocol

    java.lang.Object
      org.mule.transport.tcp.protocols.AbstractByteProtocol
          org.mule.transport.tcp.protocols.DirectProtocol
              org.mule.transport.tcp.protocols.EOFProtocol
                  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, nullEmptyArray, safeRead, safeRead, 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()

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2003-2009 MuleSource, Inc.. All Rights Reserved.