public class XmlChars extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
isChar(int ucs4char)
Returns true if the argument, a UCS-4 character code, is valid in
XML documents.
|
static boolean |
isLetter(char c)
Returns true if the character is an XML "letter".
|
static boolean |
isNameChar(char c)
Returns true if the character is allowed to be a non-initial
character in names according to the XML recommendation.
|
static boolean |
isNCNameChar(char c)
Returns true if the character is allowed to be a non-initial
character in unscoped names according to the rules of the XML
Namespaces proposed recommendation.
|
static boolean |
isSpace(char c)
Returns true if the character is allowed where XML supports
whitespace characters, false otherwise.
|
public static boolean isChar(int ucs4char)
char
datatype
in the Java Programming Language represents Unicode characters,
including unpaired surrogates.)
In XML, UCS-4 characters can also be encoded by the use of character references such as �, which happens to refer to a character that is disallowed in XML documents. UCS-4 characters allowed in XML documents can be expressed with one or two Unicode characters.
ucs4char
- The 32-bit UCS-4 character being tested.public static boolean isNameChar(char c)
isNCNameChar(char)
,
isLetter(char)
public static boolean isNCNameChar(char c)
isNameChar(char)
,
isLetter(char)
public static boolean isSpace(char c)
public static boolean isLetter(char c)
isNameChar(char)
,
isNCNameChar(char)
Copyright © 2005-2013 Oracle. All Rights Reserved.