Here you can find the source of readUUID(ByteBuffer buffer)
public static UUID readUUID(ByteBuffer buffer)
//package com.java2s; //License from project: Open Source License import java.nio.ByteBuffer; import java.util.UUID; public class Main { public static UUID readUUID(ByteBuffer buffer) { long most = buffer.getLong(); long least = buffer.getLong(); return new UUID(most, least); }// w w w .j a v a 2 s. c om }