|
Spec-Zone .ru
спецификации, руководства, описания, API
|
In the Java language, users can use these new characters/scripts
by using the Character, String and other
classes. For example, Coptic is one of scripts which was supported
in Unicode 5.0.0 (not in 5.1.0).
Now, by using JDK7-M3, you can get Coptic uppercase or lowercase
with Characer.toUpperCase(),
String.toLowerCase() and so on. Other methods in the
Character class, for example the get*()
and is*() methods, work for these new characters,
too.
Scripts can be accessed using Character.UnicodeBlock
class. 46 new blocks have been added in this Unicode 5.1.0
support.
To supersede the default currency at runtime, create a
properties file named
<JAVA_HOME>/lib/currency.properties. This file
contains the key/value pairs of the ISO 3166 country code, and the
ISO 4217 currency data. The value part consists of three
comma-separated ISO 4217 currency values: an alphabetic code, a
numeric code, and a minor unit. Any lines beginning with the hash
character, #, are treated as comment lines. For
example:
# Sample currency property for Japan JP=JPZ,999,0The new API for this feature includes the following methods, all in the
Currency class:
Locale.Category
parameter. Passing the FORMAT enum to the method returns the
default locale for formatting resources. Similarly, passing the
DISPLAY enum returns the default locale used by the UI.
The no-argument getDefault method returns the
"Display Language" default.
| Java Technology |
Copyright © 1993, 2010, Oracle and/or its affiliates. All rights reserved. |