Here you can find the source of intToFourChars(int value)
public static String intToFourChars(int value)
//package com.java2s; //License from project: Open Source License public class Main { public static String intToFourChars(int value) { char[] chars = { (char) (0xFF & (value >> 24)), (char) (0xFF & (value >> 16)), (char) (0xFF & (value >> 8)), (char) (0xFF & value) }; return new String(chars); }// ww w . j a v a2 s . c o m }