public class SAXmyHtmlHandler extends SAXiTextHandler<HtmlPeer>
Tags
-class maps several XHTML-tags to iText-objects.chapters, 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,
HtmlTagMap htmlTags)
Constructs a new SAXiTextHandler that will translate all the events
triggered by the parser to actions on the
Document -object. |
SAXmyHtmlHandler(DocListener document,
HtmlTagMap htmlTags,
BaseFont bf) |
Modifier and Type | Method and Description |
---|---|
void |
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.
|
addImage, characters, handleEndingTags, handleStartingTags, ignorableWhitespace, isDocumentRoot, setBaseFont, setControlOpenClose
endDocument, endPrefixMapping, error, fatalError, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
public SAXmyHtmlHandler(DocListener document)
Document
-object.document
- this is the document on which events must be triggeredpublic SAXmyHtmlHandler(DocListener document, HtmlTagMap htmlTags)
Document
-object.document
- this is the document on which events must be triggeredhtmlTags
- a tagmap translating HTML tags to iText tagspublic SAXmyHtmlHandler(DocListener document, HtmlTagMap htmlTags, BaseFont bf)
public SAXmyHtmlHandler(DocListener document, BaseFont bf)
Document
-object.document
- this is the document on which events must be triggeredbf
- public void startElement(String uri, String localName, String name, @Nullable Attributes attrs)
startElement
in interface ContentHandler
startElement
in class SAXiTextHandler<HtmlPeer>
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 attributespublic void endElement(String uri, String localName, String name)
endElement
in interface ContentHandler
endElement
in class SAXiTextHandler<HtmlPeer>
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 endsCopyright © 2020. All rights reserved.