public class MuleMessageEOFProtocol extends EOFProtocol implements MuleContextAware
bufferSize, UNLIMITED
EOF, NO_STREAM, STREAM_OK
Constructor and Description |
---|
MuleMessageEOFProtocol() |
Modifier and Type | Method and Description |
---|---|
Object |
read(InputStream is)
Reads the input stream and returns a whole message.
|
void |
setMuleContext(MuleContext context) |
void |
write(OutputStream os,
Object unused)
Write the specified message to the output stream.
|
isRepeat
read, remaining
copy, copy, createResponse, isRethrowExceptionOnRead, nullEmptyArray, safeRead, safeRead, setObjectSerializer, setRethrowExceptionOnRead, writeByteArray
public Object read(InputStream is) throws IOException
TcpProtocol
read
in interface TcpProtocol
read
in class DirectProtocol
is
- the input streamIOException
- if an exception occurspublic void write(OutputStream os, Object unused) throws IOException
TcpProtocol
write
in interface TcpProtocol
write
in class AbstractByteProtocol
os
- the output stream to write tounused
- the data to writeIOException
- if an exception occurspublic void setMuleContext(MuleContext context)
setMuleContext
in interface MuleContextAware
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.