Package com.itextpdf.tool.xml.html
Class Body
java.lang.Object
com.itextpdf.tool.xml.html.AbstractTagProcessor
com.itextpdf.tool.xml.html.Body
- All Implemented Interfaces:
CssAppliersAware
,TagProcessor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncontent
(WorkerContext ctx, Tag tag, String content) This method is called if there is text content encountered between the opening and closing tags this TagProcessor is mapped to.start
(WorkerContext ctx, Tag tag) Classes extending AbstractTagProcessor should override this method for actions that should be done inTagProcessor.startElement(WorkerContext, Tag)
.Methods inherited from class com.itextpdf.tool.xml.html.AbstractTagProcessor
createParagraph, currentContentToParagraph, currentContentToParagraph, doRtlIndentCorrections, end, endElement, getCssAppliers, getCSSResolver, getHtmlPipelineContext, getRunDirection, invertTextAlignForParagraph, invertTextAlignForParagraph, isStackOwner, setCssAppliers, startElement, textContent, updateParagraphFontIfNeeded
-
Constructor Details
-
Body
public Body()
-
-
Method Details
-
content
Description copied from interface:TagProcessor
This method is called if there is text content encountered between the opening and closing tags this TagProcessor is mapped to.- Specified by:
content
in interfaceTagProcessor
- Overrides:
content
in classAbstractTagProcessor
- Parameters:
ctx
- the WorkerContexttag
- the tag encounteredcontent
- the text content between the tags this TagProcessor is mapped to.- Returns:
- the element to add to the currentContent list
-
start
Description copied from class:AbstractTagProcessor
Classes extending AbstractTagProcessor should override this method for actions that should be done inTagProcessor.startElement(WorkerContext, Tag)
. TheAbstractTagProcessor.startElement(WorkerContext, Tag)
calls this method after or before doing certain stuff, (see it's description).- Overrides:
start
in classAbstractTagProcessor
- Parameters:
ctx
- the WorkerContexttag
- the tag- Returns:
- an element to be added to current content, may be null
-