Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.meterware.httpunit.parsing
Class NekoHTMLParser  view NekoHTMLParser download NekoHTMLParser.java

java.lang.Object
  extended bycom.meterware.httpunit.parsing.NekoHTMLParser
All Implemented Interfaces:
HTMLParser

class NekoHTMLParser
extends java.lang.Object
implements HTMLParser


Field Summary
private static char NBSP
           
 
Constructor Summary
(package private) NekoHTMLParser()
           
 
Method Summary
 java.lang.String getCleanedText(java.lang.String string)
          Removes any string artifacts placed in the text by the parser.
 void parse(java.net.URL pageURL, java.lang.String pageText, DocumentAdapter adapter)
          Parses the specified text string as a Document, registering it in the HTMLPage.
 boolean supportsParserWarnings()
          Returns true if this parser can display parser warnings.
 boolean supportsPreserveTagCase()
          Returns true if this parser supports preservation of the case of tag and attribute names.
 boolean supportsReturnHTMLDocument()
          Returns true if this parser can return an HTMLDocument object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NBSP

private static final char NBSP
See Also:
Constant Field Values
Constructor Detail

NekoHTMLParser

NekoHTMLParser()
Method Detail

parse

public void parse(java.net.URL pageURL,
                  java.lang.String pageText,
                  DocumentAdapter adapter)
           throws java.io.IOException,
                  org.xml.sax.SAXException
Description copied from interface: HTMLParser
Parses the specified text string as a Document, registering it in the HTMLPage. Any error reporting will be annotated with the specified URL.

Specified by:
parse in interface HTMLParser

getCleanedText

public java.lang.String getCleanedText(java.lang.String string)
Description copied from interface: HTMLParser
Removes any string artifacts placed in the text by the parser. For example, a parser may choose to encode an HTML entity as a special character. This method should convert that character to normal text.

Specified by:
getCleanedText in interface HTMLParser

supportsPreserveTagCase

public boolean supportsPreserveTagCase()
Description copied from interface: HTMLParser
Returns true if this parser supports preservation of the case of tag and attribute names.

Specified by:
supportsPreserveTagCase in interface HTMLParser

supportsReturnHTMLDocument

public boolean supportsReturnHTMLDocument()
Description copied from interface: HTMLParser
Returns true if this parser can return an HTMLDocument object.

Specified by:
supportsReturnHTMLDocument in interface HTMLParser

supportsParserWarnings

public boolean supportsParserWarnings()
Description copied from interface: HTMLParser
Returns true if this parser can display parser warnings.

Specified by:
supportsParserWarnings in interface HTMLParser