Java.lang.Character.UnicodeBlock Class



The java.lang.Character.UnicodeBlock class is a family of character subsets representing the character blocks in the Unicode specification. Character blocks generally define characters used for a specific script or purpose.

Class Declaration

Following is the declaration for java.lang.Character.UnicodeBlock class −

public static final class Character.UnicodeBlock
   extends Character.Subset

Class Methods

Sr.No.

Method & Description

1

forName()

This method returns the UnicodeBlock with the given name.

2

of()

This method returns the object representing the Unicode block containing the given character, or null if the character is not a member of a defined block.

Advertisements