Here you can find the source of int2ByteArray11(int value)
public static byte int2ByteArray11(int value)
//package com.java2s; public class Main { public static byte int2ByteArray11(int value) { byte[] b = new byte[1]; for (int i = 0; i < 1; i++) { int offset = (b.length - 1 - i) * 8; b[i] = (byte) ((value >>> offset) & 0xFF); }/*from w w w .j a va2 s .c om*/ return b[0]; } }