Class ByteArrayUnmarshaller

java.lang.Object
com.ibm.dataaccess.ByteArrayUnmarshaller

public final class ByteArrayUnmarshaller extends Object
Conversion routines to unmarshall Java binary types (short, int, long, float, double) from byte arrays.

With sign extensions enabled, the marshalled data is interpreted as signed and the data will be appropriately converted into the return type container. With sign extensions disabled, unfilled bits in the container will be set to zero. For example, -1 as one signed byte is 0xFF. Using readShort with signExtend true, the resultant short will contain 0xFFFF, which is -1 in Java's signed format. With signExtend false, the resultant short will contain 0x00FF, which is 255.