Here you can find the source of asUnsignedByte(int n)
public static final byte asUnsignedByte(int n)
//package com.java2s; //License from project: LGPL public class Main { public static final byte asUnsignedByte(int n) { return (byte) ((n) & 0xFF); }//from w ww.j a v a 2 s .co m }