Here you can find the source of int2Byte(int value)
public static byte int2Byte(int value)
//package com.java2s; public class Main { public static byte int2Byte(int value) { byte b = 0; b = (byte) (value & 0xFF); return b; }//from w w w .j a v a 2 s.c o m }