com.lowagie.text.html
Class SAXmyHtmlHandler
public class SAXmyHtmlHandler
The Tags
-class maps several XHTML-tags to iText-objects.
private Properties | bodyAttributes - These are the properties of the body section.
|
private boolean | tableBorder - This is the status of the table border.
|
SAXmyHtmlHandler(DocListener document) - Constructs a new SAXiTextHandler that will translate all the events
triggered by the parser to actions on the
Document -object.
|
SAXmyHtmlHandler(DocListener document, HashMap htmlTags) - Constructs a new SAXiTextHandler that will translate all the events
triggered by the parser to actions on the
Document -object.
|
void | endElement(String uri, String lname, String name) - This method gets called when an end tag is encountered.
|
void | startElement(String uri, String lname, String name, Attributes attrs) - This method gets called when a start tag is encountered.
|
bodyAttributes
private Properties bodyAttributes
These are the properties of the body section.
tableBorder
private boolean tableBorder
This is the status of the table border.
SAXmyHtmlHandler
public SAXmyHtmlHandler(DocListener document)
Constructs a new SAXiTextHandler that will translate all the events
triggered by the parser to actions on the Document
-object.
document
- this is the document on which events must be triggered
SAXmyHtmlHandler
public SAXmyHtmlHandler(DocListener document,
HashMap htmlTags)
Constructs a new SAXiTextHandler that will translate all the events
triggered by the parser to actions on the Document
-object.
document
- this is the document on which events must be triggeredhtmlTags
- a tagmap translating HTML tags to iText tags
endElement
public void endElement(String uri,
String lname,
String name)
This method gets called when an end tag is encountered.
- endElement in interface SAXmyHandler
uri
- the Uniform Resource Identifierlname
- the local name (without prefix), or the empty string if Namespace processing is not being performed.name
- the name of the tag that ends
startElement
public void startElement(String uri,
String lname,
String name,
Attributes attrs)
This method gets called when a start tag is encountered.
- startElement in interface SAXmyHandler
uri
- the Uniform Resource Identifierlname
- the local name (without prefix), or the empty string if Namespace processing is not being performed.name
- the name of the tag that is encounteredattrs
- the list of attributes