Here you can find the source of intToOctet(byte[] buf, int i)
private static void intToOctet(byte[] buf, int i)
//package com.java2s; //License from project: GNU General Public License public class Main { private static void intToOctet(byte[] buf, int i) { buf[0] = (byte) (i >>> 24); buf[1] = (byte) (i >>> 16); buf[2] = (byte) (i >>> 8); buf[3] = (byte) i; }/*w w w . j a v a 2 s . c o m*/ }