Here you can find the source of toInt24(final int value)
public static byte[] toInt24(final int value)
//package com.java2s; public class Main { public static byte[] toInt24(final int value) { return new byte[] { (byte) (value >>> 16), (byte) (value >>> 8), (byte) value }; }//w w w. ja v a 2 s . c o m }