Here you can find the source of writeInt(OutputStream os, int val)
public static void writeInt(OutputStream os, int val) throws IOException
//package com.java2s; //License from project: Open Source License import java.io.IOException; import java.io.OutputStream; public class Main { public static void writeInt(OutputStream os, int val) throws IOException { os.write(val >>> 24); os.write(val >>> 16); os.write(val >>> 8); os.write(val); }//www . j av a2s .c o m }