|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.caucho.xml.AbstractParser
com.caucho.xml.XmlParser
com.caucho.xml.Html
public class Html
HTML parser interface. The parser can parse directly into the DOM, or it can be used as a SAX parser.
To parse a file into a DOM Document use
Document doc = new Html().parseDocument("foo.html");
To parse a string into a DOM Document use
String html = "<h1>small test</h1>";
Document doc = new Html().parseDocumentString(html);
To parse a file using the SAX API use
Html html = new Html();
html.setContentHandler(myContentHandler);
html.parse("foo.html");
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.caucho.xml.XmlParser |
---|
XmlParser.LocatorImpl |
Field Summary |
---|
Fields inherited from class com.caucho.xml.XmlParser |
---|
XML, XMLNS |
Constructor Summary | |
---|---|
Html()
Create a new HTML parser |
Method Summary |
---|
Methods inherited from class com.caucho.xml.XmlParser |
---|
free, getColumnNumber, getFilename, getLine, getLineNumber, getPublicId, getSystemId, pushNamespace, setLine, setReader, unread |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Html()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |