Here you can find the source of unsignedByteValue(final byte input)
Parameter | Description |
---|---|
input | the unsigned byte |
public static int unsignedByteValue(final byte input)
//package com.java2s; //License from project: Open Source License public class Main { /**//from ww w . ja v a 2 s. c om * Returns the value of an unsigned byte. * * @param input * the unsigned byte * @return the integer value of the unsigned byte */ public static int unsignedByteValue(final byte input) { final int mask = 0xFF; return input & mask; } }