use of com.swiftmq.tools.util.MultiByteArrayInputStream in project swiftmq-client by iitsoftware.
the class AMQPMessage method decode.
private void decode() throws Exception {
DataInput dataInput = null;
if (multiBody != null) {
dataInput = new DataStreamInputStream(new MultiByteArrayInputStream(multiBody, totalSize));
bodySize = totalSize;
} else {
dataInput = new DataByteArrayInputStream(body);
bodySize = body.length;
}
parseSections(dataInput);
}
Aggregations