Here you can find the source of intToByteArray(int value)
private static byte[] intToByteArray(int value)
//package com.java2s; public class Main { private static byte[] intToByteArray(int value) { return new byte[] { (byte) (value >>> 24), (byte) (value >>> 16), (byte) (value >>> 8), (byte) value }; }/*ww w . j a va 2 s . c o m*/ }