KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > ibm > icu > impl > data > BreakIteratorRules_th


1 /*
2  *******************************************************************************
3  * Copyright (C) 1996-2005, International Business Machines Corporation and *
4  * others. All Rights Reserved. *
5  *******************************************************************************
6  */

7 package com.ibm.icu.impl.data;
8
9 import java.util.ListResourceBundle JavaDoc;
10
11 import com.ibm.icu.impl.ICUData;
12
13 public class BreakIteratorRules_th extends ListResourceBundle JavaDoc {
14     private static final String JavaDoc DATA_NAME = "data/th.brk";
15
16     public Object JavaDoc[][] 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 JavaDoc[0][0];
23         }
24
25         return new Object JavaDoc[][] {
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 JavaDoc[] { "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
37             { "WordBreakDictionary", DATA_NAME }, // now a path to ICU4J-specific resource
38
{ "LineBreakDictionary", DATA_NAME }
39         };
40     }
41 }
42
Popular Tags