public class SAXmyHtmlHandler extends SAXiTextHandler
Tags-class maps several XHTML-tags to iText-objects.| Modifier and Type | Field and Description |
|---|---|
private java.util.Properties |
bodyAttributes
These are the properties of the body section.
|
private boolean |
tableBorder
This is the status of the table border.
|
chapters, controlOpenClose, currentChunk, document, ignore, myTags, stack| Constructor and Description |
|---|
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,
BaseFont bf)
Constructs a new SAXiTextHandler that will translate all the events
triggered by the parser to actions on the
Document-object. |
SAXmyHtmlHandler(DocListener document,
java.util.HashMap htmlTags)
Constructs a new SAXiTextHandler that will translate all the events
triggered by the parser to actions on the
Document-object. |
| Modifier and Type | Method and Description |
|---|---|
void |
endElement(java.lang.String uri,
java.lang.String lname,
java.lang.String name)
This method gets called when an end tag is encountered.
|
void |
startElement(java.lang.String uri,
java.lang.String lname,
java.lang.String name,
org.xml.sax.Attributes attrs)
This method gets called when a start tag is encountered.
|
addImage, characters, handleEndingTags, handleStartingTags, ignorableWhitespace, isDocumentRoot, setBaseFont, setControlOpenCloseprivate java.util.Properties bodyAttributes
private boolean tableBorder
public SAXmyHtmlHandler(DocListener document)
Document-object.document - this is the document on which events must be triggeredpublic SAXmyHtmlHandler(DocListener document, BaseFont bf)
Document-object.document - this is the document on which events must be triggeredbf - public SAXmyHtmlHandler(DocListener document, java.util.HashMap htmlTags)
Document-object.document - this is the document on which events must be triggeredhtmlTags - a tagmap translating HTML tags to iText tagspublic void startElement(java.lang.String uri,
java.lang.String lname,
java.lang.String name,
org.xml.sax.Attributes attrs)
startElement in interface org.xml.sax.ContentHandlerstartElement in class SAXiTextHandleruri - 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 attributespublic void endElement(java.lang.String uri,
java.lang.String lname,
java.lang.String name)
endElement in interface org.xml.sax.ContentHandlerendElement in class SAXiTextHandleruri - 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