public class CustomByteProtocol extends AbstractByteProtocol
EOF, NO_STREAM, STREAM_OK
Constructor and Description |
---|
CustomByteProtocol()
Create a CustomSerializationProtocol object.
|
Modifier and Type | Method and Description |
---|---|
Object |
read(InputStream is)
Read bytes until we see '>>>', which ends the message
|
protected void |
writeByteArray(OutputStream os,
byte[] data)
Write the message's bytes to the socket, then terminate each message with '>>>'.
|
copy, copy, createResponse, isRethrowExceptionOnRead, nullEmptyArray, safeRead, safeRead, setRethrowExceptionOnRead, write
public CustomByteProtocol()
protected void writeByteArray(OutputStream os, byte[] data) throws IOException
writeByteArray
in class AbstractByteProtocol
IOException
public Object read(InputStream is) throws IOException
IOException
Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.