Package org.apache.qpid.framing

Examples of org.apache.qpid.framing.AMQDataBlockDecoder


            baos.write(buffer,0,size);
        }

        byte[] serverData = baos.toByteArray();
        ByteArrayDataInput badi = new ByteArrayDataInput(serverData);
        AMQDataBlockDecoder datablockDecoder = new AMQDataBlockDecoder();
        final MethodRegistry_0_91 methodRegistry_0_91 = new MethodRegistry_0_91();
        BodyFactory methodBodyFactory = new BodyFactory()
        {
            @Override
            public AMQBody createBody(final MarkableDataInput in, final long bodySize)
                    throws AMQFrameDecodingException, IOException
            {
                return methodRegistry_0_91.convertToBody(in, bodySize);
            }
        };

        List<AMQFrame> frames = new ArrayList<>();
        while (datablockDecoder.decodable(badi))
        {
            frames.add(datablockDecoder.createAndPopulateFrame(methodBodyFactory, badi));
        }

        evaluator.evaluate(socket, frames);
    }
View Full Code Here

TOP

Related Classes of org.apache.qpid.framing.AMQDataBlockDecoder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.