Package de.l3s.boilerpipe.sax
Class MarkupTagAction
java.lang.Object
de.l3s.boilerpipe.sax.MarkupTagAction
- All Implemented Interfaces:
TagAction
Assigns labels for element CSS classes and ids to the corresponding
TextBlock. CSS classes are prefixed by
DefaultLabels.MARKUP_PREFIX., and IDs are prefixed by
DefaultLabels.MARKUP_PREFIX#- Author:
- Christian Kohlschütter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanend(BoilerpipeHTMLContentHandler instance, String localName, String qName) booleanstart(BoilerpipeHTMLContentHandler instance, String localName, String qName, Attributes atts)
-
Constructor Details
-
MarkupTagAction
public MarkupTagAction(boolean isBlockLevel)
-
-
Method Details
-
start
public boolean start(BoilerpipeHTMLContentHandler instance, String localName, String qName, Attributes atts) throws SAXException - Specified by:
startin interfaceTagAction- Throws:
SAXException
-
end
public boolean end(BoilerpipeHTMLContentHandler instance, String localName, String qName) throws SAXException - Specified by:
endin interfaceTagAction- Throws:
SAXException
-
changesTagLevel
public boolean changesTagLevel()- Specified by:
changesTagLevelin interfaceTagAction
-