protected boolean checkPrefix(byte[] bytes, int count) { for (int k = 0; k < ranges.length; k++) { CMapRange[] rangeArray = ranges[k]; for (int i = 0; i < rangeArray.length; i++) { CMapRange range = rangeArray[i]; if (range.checkPrefix(bytes, count)) { return true; } } } return false; }
protected boolean checkRange(byte[] bytes, int count) { if (count >= ranges.length) { return false; } CMapRange[] rangeArray = ranges[count]; for (int i = 0; i < rangeArray.length; i++) { CMapRange range = rangeArray[i]; if (range.checkRange(bytes, count)) { return true; } } return false; }
protected void addRange(CMapRange range) { int count = range.getByteCount(); CMapRange[] rangeArray = ranges[count]; CMapRange[] tempArray = new CMapRange[rangeArray.length + 1]; System.arraycopy(rangeArray, 0, tempArray, 0, rangeArray.length); tempArray[rangeArray.length] = range; ranges[count] = tempArray; }