Here you can find the source of serializeInt(int i, DataOutputStream dout)
public static void serializeInt(int i, DataOutputStream dout) throws IOException
//package com.java2s; import java.io.*; public class Main { public static void serializeInt(int i, DataOutputStream dout) throws IOException { dout.writeInt(i);//from w w w. ja va 2s.c o m } }