Java Convert via ByteBuffer toInt(byte[] data)

Here you can find the source of toInt(byte[] data)

Description

to Int

License

Open Source License

Declaration

public static int toInt(byte[] data) 

Method Source Code

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

import java.nio.ByteBuffer;

public class Main {
    public static int toInt(byte[] data) {
        return ByteBuffer.wrap(data).getInt();
    }// ww  w .ja  v  a2 s  . c o  m
}

Related

  1. toGuidString(UUID uuid)
  2. toHex(byte[] bytes)
  3. toHexBytes(byte[] bytes)
  4. toHexString(Number n)
  5. toInt(byte[] bytes)
  6. toInt(byte[] value)
  7. toInt(final byte lowOrderByte, final byte highOrderByte)
  8. toInt(InetAddress address)
  9. toIntArray(byte[] byteArray)