[EMAIL PROTECTED] wrote:
Hello Ted,

encoder is an instance of AbstractEncoder class under org.apache.qpidity.transport.codec.Encoder. And thanks for pointing the duplication.

Yes, you are correct i checked the spec. and it (bin128) is encoded as 16 octets. I added the following method for encoding the 128 bin schema hash with help of Rafael. so you mean this will not help to encode the schema... /* public void writeBin128(byte[] s) { if (s == null) { s = new byte[16]; } else if (s.length != 16) { throw new IllegalArgumentException("" + s); }

put(s);
}
*/

could you please let me know which method can encode this schema or is there any method in AbstractEncoder which can do this OR How can i encode this.

Thanks in advance.

BR,
Rahul

Rahul,

I think your writeBin128 should work correctly. This encoding method should be used to encode the schema hash in the schema request message. Let me know how it works.

-Ted

Reply via email to