All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jp.kyasu.sgml.HTMLParser

java.lang.Object
   |
   +----jp.kyasu.sgml.SGMLParser
           |
           +----jp.kyasu.sgml.HTMLParser

public class HTMLParser
extends SGMLParser
A HTMLParser parses the HTML 3.2 document (<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">) and delivers the sgml events to the listeners (SGMLParserListeners).

For example:

     Reader reader = new BufferedReader(new InputStreamReader(System.in));
     HTMLParser parser = new HTMLParser();
     parser.addSGMLParserListener(new SGMLParserListener(){});
     try {
         parser.parse(reader);
     }
     catch (IOException e) {}
 

Version:
26 Nov 1997
Author:
Kazuki YASUMATSU
See Also:
SGMLParserListener

Constructor Index

 o HTMLParser()
Constructs a html parser with HTML 3.2 dtd.
 o HTMLParser(DTD)
Constructs a html parser with the specified dtd.

Method Index

 o getHtmlDTD()
Returns the HTML 3.2 dtd.
 o main(String[])
Converts the HTML document into the ESIS format.

Constructors

 o HTMLParser
 public HTMLParser()
Constructs a html parser with HTML 3.2 dtd.

 o HTMLParser
 public HTMLParser(DTD dtd)
Constructs a html parser with the specified dtd.

Parameters:
dtd - the specified dtd.

Methods

 o getHtmlDTD
 public static synchronized DTD getHtmlDTD()
Returns the HTML 3.2 dtd.

 o main
 public static void main(String args[])
Converts the HTML document into the ESIS format.


All Packages  Class Hierarchy  This Package  Previous  Next  Index