Here you can find the source of unpackDigital(int packed)
public static byte[] unpackDigital(int packed)
//package com.java2s; //License from project: Open Source License public class Main { public static byte[] unpackDigital(int packed) { if (packed == 0) return new byte[16]; byte[] sig = new byte[16]; for (int i = 0; i < 16; i++) sig[i] = (byte) (((packed & 1 << i) == 0) ? 0 : 255); return sig; }/* w ww. j a v a2s . co m*/ }