]> gitweb.fperrin.net Git - Dictionary.git/blob - jars/icu4j-4_4_2-src/main/classes/core/src/com/ibm/icu/impl/data/BreakIteratorRules_th.java
go
[Dictionary.git] / jars / icu4j-4_4_2-src / main / classes / core / src / com / ibm / icu / impl / data / BreakIteratorRules_th.java
1 /*\r
2  *******************************************************************************\r
3  * Copyright (C) 1996-2005, International Business Machines Corporation and    *\r
4  * others. All Rights Reserved.                                                *\r
5  *******************************************************************************\r
6  */\r
7 package com.ibm.icu.impl.data;\r
8 \r
9 import java.util.ListResourceBundle;\r
10 \r
11 import com.ibm.icu.impl.ICUData;\r
12 \r
13 public class BreakIteratorRules_th extends ListResourceBundle {\r
14     private static final String DATA_NAME = "data/th.brk";\r
15 \r
16     public Object[][] getContents() {\r
17         final boolean exists = ICUData.exists(DATA_NAME);\r
18 \r
19         // if dictionary wasn't found, then this resource bundle doesn't have\r
20         // much to contribute...\r
21         if (!exists) {\r
22             return new Object[0][0];\r
23         }\r
24 \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
34             },\r
35 \r
36 \r
37             { "WordBreakDictionary", DATA_NAME }, // now a path to ICU4J-specific resource\r
38             { "LineBreakDictionary", DATA_NAME }\r
39         };\r
40     }\r
41 }\r