Here you can find the source of unpackByte(String bits)
Parameter | Description |
---|---|
bits | a parameter |
public static byte unpackByte(String bits)
//package com.java2s; public class Main { /**/*from w w w .j ava 2 s.com*/ * Unpack a binary string ("10011...") into a byte * * @param bits * @return a byte value with the same bit pattern defined by bits */ public static byte unpackByte(String bits) { return Byte.parseByte(bits, 2); } }