code: private static int skipWhiteSpace(BitArray row) throws NotFoundException {
      int width = row.getSize();
      int endStart = row.getNextSet(0);
      if (endStart == width) {
        throw NotFoundException.getNotFoundInstance();
      }
  
      return endStart;
    }
docs: Skip all whitespace until we get to the first black line.
  
  @param row row of black/white values to search
  @return index of the first black line.
  @throws NotFoundException Throws exception if no black lines are found in the row