Here you can find the source of byteToInt(byte b)
Parameter | Description |
---|---|
bytes | a parameter |
Parameter | Description |
---|---|
InvalidAlgorithmParameterException | an exception |
public static int byteToInt(byte b)
//package com.java2s; //License from project: Open Source License public class Main { /**/*from w w w .j a v a 2s . c o m*/ * Take 1 byte to int * * @param bytes * @return * @throws InvalidAlgorithmParameterException */ public static int byteToInt(byte b) { return (b & 0xFF); } }