Lines Matching full:java
45 used to convert from some authoring/translation format to Java/ICU formats, or
46 one of the Java/ICU formats needs to be used for authoring and translation.
48 ## Java and ICU4J
52 Java `PropertyResourceBundle` uses runtime-parsed .properties files. They contain
56 escape sequences (see the Java `native2ascii` tool).
58 Defined at: http://java.sun.com/j2se/1.4/docs/api/java/util/PropertyResourceBundle.html
67 ### .java ListResourceBundle files
69 Java `ListResourceBundle` files provide implementation subclasses of the
70 `ListResourceBundle` abstract base class. **They are Java code!** Source files are
71 .java files that are compiled as usual with the javac compiler. Syntactic rules
72 of Java apply. As Java source code, they can contain arbitrary Java objects and
75 Although the Java compiler allows to specify a charset on the command line, this
76 is uncommon, and .java resource bundle files are therefore usually encoded in
79 Defined at: http://java.sun.com/j2se/1.4/docs/api/java/util/ListResourceBundle.html
81 Example: (`example_de.java`)
83 ```java
104 derived from Java `ListResourceBundle` .java files when the original ICU Java
106 only data, not code, unlike .java files. Resource bundle source files are
293 Java and ICU, using locale ID fallback at runtime.
308 3. ICU4C .txt -> Java ListResourceBundle .java format: Option with genrb (ICU
312 4. Java ListResourceBundle .java format -> ICU4C .txt: Use ICU4J 2.4's
329 The -j option causes .java output, -b is an arbitrary bundle name prefix, and -p
331 may be truly arbitrary if the generated .java files are not actually used in a
332 Java application. genrb auto-detects .txt files encoded in Unicode charsets like
333 UTF-8 or UTF-16 if they have a signature byte sequence ("BOM"). The .java output
337 The output of the above genrb invocation is `TestName_de.java`:
339 ```java
341 import java.util.ListResourceBundle;
362 An ICUListResourceBundle .java file as generated in the previous example can be
365 1. Compile the .java file, e.g. with `javac -d . TestName_de.java`. ICU4J needs
366 to be on the classpath (or use the -classpath option). If the .java file is
369 current folder) is required. Without it, the Java compiler would not
377 `java -cp ;(folder to ICU4J)/icu4j.jar;(working folder for the previous steps); com.ibm.icu.dev.tool.localeconverter.ConvertICUListResourceBundle -icu -package com.example -bundle-name TestName de > de.txt`
381 bundle name (TestName) and locale ID (de) must match the .java/.class files.