All Packages Class Hierarchy This Package Previous Next Index
Class jp.kyasu.sgml.HTMLEvent
java.lang.Object
|
+----java.util.EventObject
|
+----jp.kyasu.sgml.SGMLEvent
|
+----jp.kyasu.sgml.HTMLEvent
- public class HTMLEvent
- extends SGMLEvent
The HTML event that is delivered from HTMLParser
to
SGMLParserListener
s.
- Version:
- 07 Nov 1997
- Author:
- Kazuki YASUMATSU
- See Also:
- Element, HTMLParser, SGMLParserListener
-
HTMLEvent(HTMLParser, int)
- Constructs a html event with the specified html parser (event source)
and id.
-
HTMLEvent(HTMLParser, int, Element)
- Constructs a html event with the specified html parser (event source),
id, and element.
-
HTMLEvent(HTMLParser, int, Element, Hashtable)
- Constructs a html event with the specified html parser (event source),
id, element, and attributes.
-
HTMLEvent(HTMLParser, int, String)
- Constructs a html event with the specified html parser (event source),
id, and cdata.
-
HTMLEvent(HTMLParser, int, String, boolean)
- Constructs a html event with the specified html parser (event source),
id, cdata, and the flag indicating nbsp (no break space).
-
isNbsp()
- Checks if the cdata is a nbsp (non break space).
HTMLEvent
public HTMLEvent(HTMLParser parser,
int id,
Element element,
Hashtable attributes)
- Constructs a html event with the specified html parser (event source),
id, element, and attributes. The id must be STARTTAG_PARSED.
- Parameters:
- parser - the html parser (event source).
- id - the id.
- element - the element.
- attributes - the attributes.
- Throws: IllegalArgumentException
- if the id is not STARTTAG_PARSED.
HTMLEvent
public HTMLEvent(HTMLParser parser,
int id,
Element element)
- Constructs a html event with the specified html parser (event source),
id, and element. The id must be ENDTAG_PARSED.
- Parameters:
- parser - the html parser (event source).
- id - the id.
- element - the element.
- Throws: IllegalArgumentException
- if the id is not ENDTAG_PARSED.
HTMLEvent
public HTMLEvent(HTMLParser parser,
int id,
String cdata)
- Constructs a html event with the specified html parser (event source),
id, and cdata. The id must be CDATA_PARSED.
- Parameters:
- parser - the html parser (event source).
- id - the id.
- cdata - the cdata.
- Throws: IllegalArgumentException
- if the id is not CDATA_PARSED.
HTMLEvent
public HTMLEvent(HTMLParser parser,
int id,
String cdata,
boolean nbsp)
- Constructs a html event with the specified html parser (event source),
id, cdata, and the flag indicating nbsp (no break space).
The id must be CDATA_PARSED.
- Parameters:
- parser - the html parser (event source).
- id - the id.
- cdata - the cdata.
- nbsp - true if the cdata is nbsp (non break space).
- Throws: IllegalArgumentException
- if the id is not CDATA_PARSED.
HTMLEvent
public HTMLEvent(HTMLParser parser,
int id)
- Constructs a html event with the specified html parser (event source)
and id. The id must be PARSING_FINISHED.
- Parameters:
- parser - the html parser (event source).
- id - the id.
- Throws: IllegalArgumentException
- if the id is not PARSING_FINISHED.
isNbsp
public boolean isNbsp()
- Checks if the cdata is a nbsp (non break space).
This operation is valid when id is CDATA_PARSED.
All Packages Class Hierarchy This Package Previous Next Index