Search in sources :

Example 1 with MultiByteArrayInputStream

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);
}
Also used : DataInput(java.io.DataInput) DataStreamInputStream(com.swiftmq.tools.util.DataStreamInputStream) MultiByteArrayInputStream(com.swiftmq.tools.util.MultiByteArrayInputStream) DataByteArrayInputStream(com.swiftmq.tools.util.DataByteArrayInputStream)

Aggregations

DataByteArrayInputStream (com.swiftmq.tools.util.DataByteArrayInputStream)1 DataStreamInputStream (com.swiftmq.tools.util.DataStreamInputStream)1 MultiByteArrayInputStream (com.swiftmq.tools.util.MultiByteArrayInputStream)1 DataInput (java.io.DataInput)1