- Prev Class
 - Next Class
 
org.apache.nutch.parse.html
Class XMLCharacterRecognizer
- java.lang.Object
 - org.apache.nutch.parse.html.XMLCharacterRecognizer
 
public class XMLCharacterRecognizer extends Object
Class used to verify whether the specified ch conforms to the XML 1.0 definition of whitespace.
Constructor Summary
 Constructors   Constructor and Description   XMLCharacterRecognizer()   
Method Summary
 Methods   Modifier and Type Method and Description   static boolean isWhiteSpace(char ch) 
Returns whether the specified ch conforms to the XML 1.0 definition of whitespace.
    static boolean isWhiteSpace(char[] ch,
            int start,
            int length) 
Tell if the string is whitespace.
    static boolean isWhiteSpace(String s) 
Tell if the string is whitespace.
    static boolean isWhiteSpace(StringBuffer buf) 
Tell if the string is whitespace.
-    
Methods inherited from class java.lang.Object
 clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait     
Constructor Detail
-  
XMLCharacterRecognizer
public XMLCharacterRecognizer()
Method Detail
-  
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 of S for details.
  - Parameters:
  - <code>ch</code> - Character to check as XML whitespace. 
  - Returns:
  - =true if ch is XML whitespace; otherwise =false.       
-  
isWhiteSpace
public static boolean isWhiteSpace(char[] ch,
                   int start,
                   int length)
Tell if the string is whitespace.
  - Parameters:
  - <code>ch</code> - Character array to check as XML whitespace.
  - <code>start</code> - Start index of characters in the array
  - <code>length</code> - Number of characters in the array 
  - Returns:
  - True if the characters in the array are XML whitespace; otherwise, false.       
-  
isWhiteSpace
public static boolean isWhiteSpace(StringBuffer buf)
Tell if the string is whitespace.
  - Parameters:
  - <code>buf</code> - StringBuffer to check as XML whitespace. 
  - Returns:
  - True if characters in buffer are XML whitespace, false otherwise       
-  
isWhiteSpace
public static boolean isWhiteSpace(String s)
Tell if the string is whitespace.
  - Parameters:
  - <code>s</code> - String to check as XML whitespace. 
  - Returns:
  - True if characters in buffer are XML whitespace, false otherwise      
   
- Prev Class
 - Next Class
 
