Here you can find the source of writeInt(OutputStream out, int value)
private static void writeInt(OutputStream out, int value) throws IOException
//package com.java2s; //License from project: Open Source License import java.io.*; public class Main { private static void writeInt(OutputStream out, int value) throws IOException { out.write((value >>> 24) & 0xFF); out.write((value >>> 16) & 0xFF); out.write((value >>> 8) & 0xFF); out.write((value) & 0xFF);/*w ww . j a v a 2 s .c om*/ } }