public interface TcpProtocol
SocketsExtension.| Modifier and Type | Method and Description |
|---|---|
InputStream |
read(InputStream is)
Reads the input stream and returns a whole message.
|
void |
write(OutputStream os,
Object data,
String encoding)
Write the specified message into the
OutputStream. |
InputStream read(InputStream is) throws IOException
is - the input streamInputStream containing a full messageIOException - if an exception occursvoid write(OutputStream os, Object data, String encoding) throws IOException
OutputStream.os - the OutputStream in which the data is going to be writtendata - data to be writtenencoding - in which the data will be serialized if its type is StringIOException - if an exception occursCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.