Here you can find the source of toDouble(ByteBuffer bytes)
public static double toDouble(ByteBuffer bytes)
//package com.java2s; //License from project: Apache License import java.nio.ByteBuffer; public class Main { public static double toDouble(ByteBuffer bytes) { return bytes.getDouble(bytes.position()); }/*from w w w. j av a 2s .com*/ }