Package com.itextpdf.tool.xml.html.head
Class Link
- java.lang.Object
-
- com.itextpdf.tool.xml.html.AbstractTagProcessor
-
- com.itextpdf.tool.xml.html.head.Link
-
- All Implemented Interfaces:
CssAppliersAware
,TagProcessor
public class Link extends AbstractTagProcessor
The Link TagProcessor will try to add the content of a <link> that has the attribute type set to "text/css" to theCssResolverPipeline
CSS. If the content cannot be parsed, an error is logged.
-
-
Constructor Summary
Constructors Constructor Description Link()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<Element>
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
content, createParagraph, currentContentToParagraph, currentContentToParagraph, doRtlIndentCorrections, end, endElement, getCssAppliers, getCSSResolver, getHtmlPipelineContext, getRunDirection, invertTextAlignForParagraph, invertTextAlignForParagraph, isStackOwner, setCssAppliers, startElement, textContent, updateParagraphFontIfNeeded
-
-
-
-
Field Detail
-
LOG
private static final Logger LOG
-
-
Method Detail
-
start
public java.util.List<Element> start(WorkerContext ctx, Tag tag)
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
-
-