Package org.apache.xindice.core.data

Examples of org.apache.xindice.core.data.Value.byteAt()


        Value value = InlineHeaderBuilder.createValue(12, metadata, data, 2, 7);

        /*
         * byte 0 is the total header length
         */
        assertEquals(5, value.byteAt(0));
       
        /*
         * byte 1 is the metadata version
         */
        assertEquals(12, value.byteAt(1));
View Full Code Here


        assertEquals(5, value.byteAt(0));
       
        /*
         * byte 1 is the metadata version
         */
        assertEquals(12, value.byteAt(1));
       
        /*
         * bytes 2-4 are metadata...
         */
        for (int i = 0; i < metadata.length; ++i) {
View Full Code Here

       
        /*
         * bytes 2-4 are metadata...
         */
        for (int i = 0; i < metadata.length; ++i) {
            assertEquals("i=" + i, metadata[i], value.byteAt(i + 2));
        }
       
        /*
         * bytes 5-11 are record value data.
         */
 
View Full Code Here

       
        /*
         * bytes 5-11 are record value data.
         */
        for (int i = 0; i < 7; ++i) {
            assertEquals("i=" + i, data[i + 2], value.byteAt(i + 5));
        }
    }
}
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.