class BitBufferHelper {

    public static byte getByte(byte[] data) {
        if (data.length * NetUtils.NUM_BITS_IN_A_BYTE > Byte.SIZE) {
            LOG.error("getByte", new BufferException("Container is too small for the number of requested bits"));
        }
        return data[0];
    }

    private  BitBufferHelper();

}