Here you can find the source of putIntLSBMSB(ByteBuffer byteBuffer, int value)
public static void putIntLSBMSB(ByteBuffer byteBuffer, int value)
//package com.java2s; import java.nio.ByteBuffer; import java.nio.ByteOrder; public class Main { public static void putIntLSBMSB(ByteBuffer byteBuffer, int value) { byteBuffer.order(ByteOrder.LITTLE_ENDIAN).putInt(value); byteBuffer.order(ByteOrder.BIG_ENDIAN).putInt(value); }// w w w. j a va2 s . co m }