Here you can find the source of swapInt(int i)
static public int swapInt(int i)
//package com.java2s; public class Main { /** Converts an "int" value between endian systems. */ static public int swapInt(int i) { return ((i & 0xFF) << 24) | ((i & 0xFF00) << 8) | ((i & 0xFF0000) >> 8) | ((i >> 24) & 0xFF); }// w ww . j a v a 2s. c o m }