Here you can find the source of ByteToString(int b)
Parameter | Description |
---|---|
b | a parameter |
public static String ByteToString(int b)
//package com.java2s; //License from project: LGPL public class Main { /**//from ww w.ja v a 2 s. co m * converts the 8 lsb of the given integer to a String * @param b * @return the 8 lsb of the given integer as a String */ public static String ByteToString(int b) { return Integer.toBinaryString((b & 0xff) | 0x100).substring(1); } }