public boolean[] getArray(String str, int length) {
        boolean[] mask = new boolean[length];
        
        List<Integer> idx = new ArrayList<Integer>();
        if (length > 1) {
            idx = parse(str, length);
        } else // parseRange not happy with "0-*" for length of 1.
        {
            idx.add(0);
        }

        for (int i = 0; i < length; i++) { // match all rows in the range provided
           mask[i] = idx.contains(i);
        }
        return mask;
    }