Java File Read via ByteBuffer readDouble(byte[] src, int pointer)

Here you can find the source of readDouble(byte[] src, int pointer)

Description

read Double

License

Open Source License

Declaration

public static double readDouble(byte[] src, int pointer) 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.nio.ByteBuffer;

public class Main {
    public static double readDouble(byte[] src, int pointer) {
        return Double.longBitsToDouble(readLong(src, pointer));
    }/*from  w  w w .j  a  va 2  s.  c  o  m*/

    public static long readLong(byte[] src, int pointer) {
        return ByteBuffer.wrap(src, pointer, 8).getLong();
    }
}

Related

  1. readContent(File file)
  2. readContentsNIO(FileInputStream input, String encoding, boolean decodeNIO)
  3. readData(String fileName, int size)
  4. readDelimitedFromInputStream(InputStream inputStream)
  5. readDouble(BufferedReader br, double[] buf)
  6. readDouble(FileChannel fileChannel, ByteOrder byteOrder)
  7. readDouble(final byte[] bytes, final int length, final int offset)
  8. readEntireFile(java.io.File file)
  9. readerToString(Reader reader)