Java tutorial
//package com.java2s; import java.nio.ByteBuffer; import java.util.UUID; public class Main { public static UUID getUuidFromByteArrayBigEndian(byte[] bytes) { ByteBuffer bb = ByteBuffer.wrap(bytes); long high = bb.getLong(); long low = bb.getLong(); UUID uuid = new UUID(high, low); return uuid; } }