Here you can find the source of readInt(byte[] bytes, int offset, java.nio.ByteOrder byteorder)
public static int readInt(byte[] bytes, int offset, java.nio.ByteOrder byteorder)
//package com.java2s; //License from project: Apache License public class Main { public static int readInt(byte[] bytes, int offset, java.nio.ByteOrder byteorder) { return java.nio.ByteBuffer.wrap(bytes, offset, 4).order(byteorder).getInt(); }//from w w w. ja va 2 s. c om }