APIdia Launch Partner
Top Description Constructors Methods
com.sun.org.apache.xml.internal.utils

public Class XMLCharacterRecognizer

extends Object
Class Inheritance

Class used to verify whether the specified ch conforms to the XML 1.0 definition of whitespace.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static boolean

Returns:

=true if ch is XML whitespace; otherwise =false.
isWhiteSpace
(char
Character to check as XML whitespace.
ch
)

Returns whether the specified ch conforms to the XML 1.0 definition of whitespace.

public static boolean

Returns:

True if the characters in the array are XML whitespace; otherwise, false.
isWhiteSpace
(char[]
Character array to check as XML whitespace.
ch
,
int
Start index of characters in the array
start
,
int
Number of characters in the array
length
)

Tell if the string is whitespace.

public static boolean

Returns:

True if characters in buffer are XML whitespace, false otherwise
isWhiteSpace
(StringBuffer
StringBuffer to check as XML whitespace.
buf
)

Tell if the string is whitespace.

public static boolean

Returns:

True if characters in buffer are XML whitespace, false otherwise
isWhiteSpace
(String
String to check as XML whitespace.
s
)

Tell if the string is whitespace.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

XMLCharacterRecognizerback to summary
public XMLCharacterRecognizer()

Method Detail

isWhiteSpaceback to summary
public static boolean isWhiteSpace(char ch)

Returns whether the specified ch conforms to the XML 1.0 definition of whitespace. Refer to the definition of S for details.

Parameters
ch:char

Character to check as XML whitespace.

Returns:boolean

=true if ch is XML whitespace; otherwise =false.

isWhiteSpaceback to summary
public static boolean isWhiteSpace(char[] ch, int start, int length)

Tell if the string is whitespace.

Parameters
ch:char[]

Character array to check as XML whitespace.

start:int

Start index of characters in the array

length:int

Number of characters in the array

Returns:boolean

True if the characters in the array are XML whitespace; otherwise, false.

isWhiteSpaceback to summary
public static boolean isWhiteSpace(StringBuffer buf)

Tell if the string is whitespace.

Parameters
buf:StringBuffer

StringBuffer to check as XML whitespace.

Returns:boolean

True if characters in buffer are XML whitespace, false otherwise

isWhiteSpaceback to summary
public static boolean isWhiteSpace(String s)

Tell if the string is whitespace.

Parameters
s:String

String to check as XML whitespace.

Returns:boolean

True if characters in buffer are XML whitespace, false otherwise