Package org.bson

Examples of org.bson.LazyBSONCallback.reset()


    public int compare(final byte[] b1, final int s1, final int l1, final byte[] b2, final int s2, final int l2) {
        LazyBSONCallback cb = new LazyBSONCallback();
        DECODER.decode(b1, cb);
        BSONObject a = (BSONObject) cb.get();

        cb.reset();
        DECODER.decode(b2, cb);
        BSONObject b = (BSONObject) cb.get();
        return compare(a, b);
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.