public class BinaryCarbonMessage extends CarbonMessage
CarbonMessage type for Binary Messages. This message type handles the binary data easily. So if you are
dealing with binary data it is better to use this message type. This will work as a binary data carrier from
transport level to application level.CarbonMessage.ByteBufferInputStream, CarbonMessage.ByteBufferOutputStreamalreadyRead, bufferContent, byteBufferInputStream, faultHandlerStack, headers, lock, messageBody, messageDataSource, messagingException, nelException, properties| Constructor and Description |
|---|
BinaryCarbonMessage(ByteBuffer bytes,
boolean finalFragment) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isFinalFragment() |
ByteBuffer |
readBytes() |
addMessageBody, getCopyOfFullMessageBody, getFaultHandlerStack, getFullMessageBody, getFullMessageLength, getHeader, getHeaders, getInputStream, getLock, getMessageBody, getMessageDataSource, getMessagingException, getNelException, getOutputStream, getProperties, getProperty, getWriter, isAlreadyRead, isBufferContent, isEmpty, isEndOfMsgAdded, isFaulty, release, removeHeader, removeProperty, setAlreadyRead, setBufferContent, setEndOfMsgAdded, setFaultHandlerStack, setHeader, setHeaders, setHeaders, setMessageDataSource, setMessagingException, setNelException, setProperty, setWriterpublic BinaryCarbonMessage(ByteBuffer bytes, boolean finalFragment)
bytes - byte array of binary data.finalFragment - true if the message is the final fragment of the binary message.
First fragment can also be the final fragment.public ByteBuffer readBytes()
public boolean isFinalFragment()
Copyright © 2017 WSO2. All rights reserved.