public interface TcpProtocol
Modifier and Type | Method and Description |
---|---|
ResponseOutputStream |
createResponse(Socket socket)
This lets protocols encode a response stream.
|
Object |
read(InputStream is)
Reads the input stream and returns a whole message.
|
void |
write(OutputStream os,
Object data)
Write the specified message to the output stream.
|
Object read(InputStream is) throws IOException
is
- the input streamIOException
- if an exception occursvoid write(OutputStream os, Object data) throws IOException
os
- the output stream to write todata
- the data to writeIOException
- if an exception occursResponseOutputStream createResponse(Socket socket) throws IOException
socket
- The destination to write toIOException
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.