O'Reilly logo

Java in a Nutshell, 5th Edition by David Flanagan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

Character.UnicodeBlock

Synopsis

This subclass of Character.Subset defines a number of constants that represent named subsets of the Unicode character set. The subsets and their names are the character blocks defined by the Unicode specification (see http://www.unicode.org/). Java 1.4 and 5.0 both update this class to a new version of the Unicode standard and define a number of new block constants. The static method of( ) takes a character or int codepoint and returns the Character.UnicodeBlock to which it belongs, or null if it is not part of any defined block. When presented with an unknown Unicode character, this method provides a useful way to determine what alphabet it belongs to. In Java 5.0, the forName( ) factory method allows lookup of a UnicodeBlock by name.

public static final class Character.UnicodeBlock extends Character.Subset {
// No Constructor
                  // Public Constants
                  5.0  public static final Character.UnicodeBlock AEGEAN_NUMBERS;  
     public static final Character.UnicodeBlock ALPHABETIC_PRESENTATION_FORMS;  
     public static final Character.UnicodeBlock ARABIC;  
     public static final Character.UnicodeBlock ARABIC_PRESENTATION_FORMS_A;  
     public static final Character.UnicodeBlock ARABIC_PRESENTATION_FORMS_B;  
     public static final Character.UnicodeBlock ARMENIAN;  
     public static final Character.UnicodeBlock ARROWS;  
     public static final Character.UnicodeBlock BASIC_LATIN;  
     public static final Character.UnicodeBlock BENGALI;  
     public static final Character.UnicodeBlock BLOCK_ELEMENTS; public ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required