static void write2Byte(List stream, int value){ stream.add((value >> 8) & 0xFF); stream.add(value & 0xFF); }