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