2 *******************************************************************************
\r
3 * Copyright (C) 1996-2005, International Business Machines Corporation and *
\r
4 * others. All Rights Reserved. *
\r
5 *******************************************************************************
\r
7 package com.ibm.icu.impl.data;
\r
9 import java.util.ListResourceBundle;
\r
11 import com.ibm.icu.impl.ICUData;
\r
13 public class BreakIteratorRules_th extends ListResourceBundle {
\r
14 private static final String DATA_NAME = "data/th.brk";
\r
16 public Object[][] getContents() {
\r
17 final boolean exists = ICUData.exists(DATA_NAME);
\r
19 // if dictionary wasn't found, then this resource bundle doesn't have
\r
20 // much to contribute...
\r
22 return new Object[0][0];
\r
25 return new Object[][] {
\r
26 // names of classes to instantiate for the different kinds of break
\r
27 // iterator. Notice we're now using DictionaryBasedBreakIterator
\r
28 // for word and line breaking.
\r
29 { "BreakIteratorClasses",
\r
30 new String[] { "RuleBasedBreakIterator", // character-break iterator class
\r
31 "DictionaryBasedBreakIterator", // word-break iterator class
\r
32 "DictionaryBasedBreakIterator", // line-break iterator class
\r
33 "RuleBasedBreakIterator" } // sentence-break iterator class
\r
37 { "WordBreakDictionary", DATA_NAME }, // now a path to ICU4J-specific resource
\r
38 { "LineBreakDictionary", DATA_NAME }
\r