public class StreamingProtocol extends EOFProtocol implements TcpProtocol
bufferSize, UNLIMITED
EOF, NO_STREAM, STREAM_OK
Constructor and Description |
---|
StreamingProtocol() |
Modifier and Type | Method and Description |
---|---|
protected void |
copyStream(InputStream is,
OutputStream os) |
protected int |
getLimit() |
Object |
read(InputStream is)
Reads the input stream and returns a whole message.
|
isRepeat
read, remaining
copy, copy, createResponse, isRethrowExceptionOnRead, nullEmptyArray, safeRead, safeRead, setObjectSerializer, setRethrowExceptionOnRead, write, writeByteArray
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createResponse, write
public Object read(InputStream is) throws IOException
TcpProtocol
read
in interface TcpProtocol
read
in class DirectProtocol
is
- the input streamIOException
- if an exception occursprotected void copyStream(InputStream is, OutputStream os) throws IOException
is
- os
- IOException
protected int getLimit()
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.