2 ******************************************************************************
3 * Copyright (C) 1996-2009, International Business Machines Corporation and *
4 * others. All Rights Reserved. *
5 ******************************************************************************
12 package com.ibm.icu.impl;
14 import com.ibm.icu.impl.PropsVectors.CompactHandler;
16 public class PVecToTrieCompactHandler implements CompactHandler {
17 public IntTrieBuilder builder;
18 public int initialValue;
20 public void setRowIndexForErrorValue(int rowIndex) {
23 public void setRowIndexForInitialValue(int rowIndex) {
24 initialValue = rowIndex;
27 public void setRowIndexForRange(int start, int end, int rowIndex) {
28 builder.setRange(start, end + 1, rowIndex, true);
31 public void startRealValues(int rowIndex) {
32 if (rowIndex > 0xffff) {
33 // too many rows for a 16-bit trie
34 throw new IndexOutOfBoundsException();
36 builder = new IntTrieBuilder(null, 100000, initialValue,