Here you can find the source of intToBigEndian(int value, byte[] array, int index)
private static void intToBigEndian(int value, byte[] array, int index)
//package com.java2s; //License from project: LGPL public class Main { private static void intToBigEndian(int value, byte[] array, int index) { array[index] = (byte) (value >> 24); array[index + 1] = (byte) (value >> 16); array[index + 2] = (byte) (value >> 8); array[index + 3] = (byte) (value); }/*w ww. j a va 2 s . co m*/ }