Java Byte Array to Int byteToInt(byte[] byteArray)

Here you can find the source of byteToInt(byte[] byteArray)

Description

byte To Int

License

Open Source License

Declaration

public static int byteToInt(byte[] byteArray) 

Method Source Code

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

public class Main {
    public static int byteToInt(byte[] byteArray) {
        return (int) ((byteArray[0] & 0XFF) << 24) | (int) ((byteArray[1] & 0XFF) << 16)
                | (int) ((byteArray[2] & 0XFF) << 8) | (int) ((byteArray[3] & 0XFF));
    }// w  w  w .  j  a  v  a  2s. com
}

Related

  1. byteToInt(byte b[])
  2. byteToInt(byte[] b)
  3. byteToInt(byte[] b)
  4. byteToInt(byte[] bank)
  5. byteToInt(byte[] buf, int off)
  6. byteToInt(byte[] bytes)
  7. byteToInt(byte[] i_Value)
  8. byteToInt(byte[] num)
  9. byteToInt(byte[] source, int sourceOffset)