Methods 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.
return (ch == 0x20) || (ch == 0x09) || (ch == 0xD) || (ch == 0xA);
|
public static boolean | isWhiteSpace(char[] ch, int start, int length)Tell if the string is whitespace.
int end = start + length;
for (int s = start; s < end; s++)
{
if (!isWhiteSpace(ch[s]))
return false;
}
return true;
|
public static boolean | isWhiteSpace(java.lang.StringBuffer buf)Tell if the string is whitespace.
int n = buf.length();
for (int i = 0; i < n; i++)
{
if (!isWhiteSpace(buf.charAt(i)))
return false;
}
return true;
|
public static boolean | isWhiteSpace(java.lang.String s)Tell if the string is whitespace.
if(null != s)
{
int n = s.length();
for (int i = 0; i < n; i++)
{
if (!isWhiteSpace(s.charAt(i)))
return false;
}
}
return true;
|