Class XMLCharacterRecognizer
java.lang.Object
org.loboevolution.apache.xml.utils.XMLCharacterRecognizer
Class used to verify whether the specified ch conforms to the XML 1.0 definition of
whitespace.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisWhiteSpace(char ch) Returns whether the specified ch conforms to the XML 1.0 definition of whitespace.static booleanisWhiteSpace(CharSequence chars) Tell if the string is whitespace.
-
Constructor Details
-
XMLCharacterRecognizer
public XMLCharacterRecognizer()
-
-
Method Details
-
isWhiteSpace
public static boolean isWhiteSpace(char ch) Returns whether the specified ch conforms to the XML 1.0 definition of whitespace. Refer to the definition ofSfor details.- Parameters:
ch- Character to check as XML whitespace.- Returns:
- =true if ch is XML whitespace; otherwise =false.
-
isWhiteSpace
Tell if the string is whitespace.- Parameters:
chars- CharSequence to check as XML whitespace.- Returns:
- True if characters in buffer are XML whitespace, false otherwise
-