Here you can find the source of readDouble(FileChannel fileChannel, ByteOrder byteOrder)
public static double readDouble(FileChannel fileChannel, ByteOrder byteOrder) throws IOException
//package com.java2s; //License from project: Open Source License import java.io.IOException; import java.nio.ByteBuffer; import java.nio.ByteOrder; import java.nio.channels.FileChannel; public class Main { public static double readDouble(FileChannel fileChannel, ByteOrder byteOrder) throws IOException { ByteBuffer byteBuffer = ByteBuffer.allocate(8); byteBuffer.order(byteOrder);//from w w w .ja v a2 s. c o m fileChannel.read(byteBuffer); return byteBuffer.getDouble(0); } }