code: private static byte _getByte(int startIndex, BitSetStrictLength set)
  			throws AsnException {
  
  		int count = 8;
  		byte data = 0;
  
  //		if (set.length() - 1 < startIndex) {
  //			throw new AsnException();
  //		}
  
  		while (count > 0) {
  			if (set.length() - 1 < startIndex) {
  				break;
  			} else {
  				boolean lit = set.get(startIndex);
  				if (lit) {
  					data |= (0x01 << (count - 1));
  				}
  
  				startIndex++;
  				count--;
  			}
  
  		}
  		return data;
  	}
docs: Attepts to read up to 8 bits and store into byte. If less is found, only
  those are returned
  
  @param startIndex
  @param set
  @return
  @throws AsnException