01: /*
02: *******************************************************************************
03: * Copyright (C) 1996-2005, International Business Machines Corporation and *
04: * others. All Rights Reserved. *
05: *******************************************************************************
06: */
07: package com.ibm.icu.impl.data;
08:
09: import java.util.ListResourceBundle;
10:
11: import com.ibm.icu.impl.ICUData;
12:
13: public class BreakIteratorRules_th extends ListResourceBundle {
14: private static final String DATA_NAME = "data/th.brk";
15:
16: public Object[][] getContents() {
17: final boolean exists = ICUData.exists(DATA_NAME);
18:
19: // if dictionary wasn't found, then this resource bundle doesn't have
20: // much to contribute...
21: if (!exists) {
22: return new Object[0][0];
23: }
24:
25: return new Object[][] {
26: // names of classes to instantiate for the different kinds of break
27: // iterator. Notice we're now using DictionaryBasedBreakIterator
28: // for word and line breaking.
29: { "BreakIteratorClasses",
30: new String[] { "RuleBasedBreakIterator", // character-break iterator class
31: "DictionaryBasedBreakIterator", // word-break iterator class
32: "DictionaryBasedBreakIterator", // line-break iterator class
33: "RuleBasedBreakIterator" } // sentence-break iterator class
34: },
35:
36: { "WordBreakDictionary", DATA_NAME }, // now a path to ICU4J-specific resource
37: { "LineBreakDictionary", DATA_NAME } };
38: }
39: }
|