Here you can find the source of getReverseBytesShort(byte[] b, int index)
public static short getReverseBytesShort(byte[] b, int index)
//package com.java2s; public class Main { public static short getReverseBytesShort(byte[] b, int index) { return (short) (((b[index + 1] << 8) | b[index] & 0xff)); }/* ww w . j a va2s . c o m*/ }