Here you can find the source of writeInt(OutputStream out, int v)
static void writeInt(OutputStream out, int v) throws IOException
//package com.java2s; /*/*w w w . j av a 2s . c o m*/ * @(#)NodeUtil.java 1.2 05/06/27 * * Copyright (c) 2005 Sun Microsystems, Inc. All Rights Reserved. * * See the file "LICENSE.txt" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. */ import java.io.*; public class Main { static 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); } }