Package com.lowagie.text.html
Class SAXmyHtmlHandler
- All Implemented Interfaces:
ContentHandler
,DTDHandler
,EntityResolver
,ErrorHandler
The
Tags
-class maps several XHTML-tags to iText-objects.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Properties
These are the properties of the body section.private boolean
This is the status of the table border.Fields inherited from class com.lowagie.text.xml.SAXiTextHandler
chapters, currentChunk, document, ignore, myTags, stack
-
Constructor Summary
ConstructorsConstructorDescriptionSAXmyHtmlHandler
(DocListener document) Constructs a new SAXiTextHandler that will translate all the events triggered by the parser to actions on theDocument
-object.SAXmyHtmlHandler
(DocListener document, HtmlTagMap htmlTags) Constructs a new SAXiTextHandler that will translate all the events triggered by the parser to actions on theDocument
-object.SAXmyHtmlHandler
(DocListener document, HtmlTagMap htmlTags, BaseFont bf) SAXmyHtmlHandler
(DocListener document, BaseFont bf) Constructs a new SAXiTextHandler that will translate all the events triggered by the parser to actions on theDocument
-object. -
Method Summary
Modifier and TypeMethodDescriptionvoid
endElement
(String uri, String localName, String name) This method gets called when an end tag is encountered.void
startElement
(String uri, String localName, String name, Attributes attrs) This method gets called when a start tag is encountered.Methods inherited from class com.lowagie.text.xml.SAXiTextHandler
addImage, characters, handleEndingTags, handleStartingTags, ignorableWhitespace, isDocumentRoot, setBaseFont, setControlOpenClose
Methods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, endPrefixMapping, error, fatalError, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.xml.sax.ContentHandler
declaration
-
Field Details
-
bodyAttributes
These are the properties of the body section. -
tableBorder
private boolean tableBorderThis is the status of the table border.
-
-
Constructor Details
-
SAXmyHtmlHandler
Constructs a new SAXiTextHandler that will translate all the events triggered by the parser to actions on theDocument
-object.- Parameters:
document
- this is the document on which events must be triggered
-
SAXmyHtmlHandler
Constructs a new SAXiTextHandler that will translate all the events triggered by the parser to actions on theDocument
-object.- Parameters:
document
- this is the document on which events must be triggeredhtmlTags
- a tagmap translating HTML tags to iText tags
-
SAXmyHtmlHandler
-
SAXmyHtmlHandler
Constructs a new SAXiTextHandler that will translate all the events triggered by the parser to actions on theDocument
-object.- Parameters:
document
- this is the document on which events must be triggeredbf
- the base class for the supported fonts
-
-
Method Details
-
startElement
This method gets called when a start tag is encountered.- Specified by:
startElement
in interfaceContentHandler
- Overrides:
startElement
in classSAXiTextHandler<HtmlPeer>
- Parameters:
uri
- the Uniform Resource IdentifierlocalName
- 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
-
endElement
This method gets called when an end tag is encountered.- Specified by:
endElement
in interfaceContentHandler
- Overrides:
endElement
in classSAXiTextHandler<HtmlPeer>
- Parameters:
uri
- the Uniform Resource IdentifierlocalName
- the local name (without prefix), or the empty string if Namespace processing is not being performed.name
- the name of the tag that ends
-