|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.l3s.boilerpipe.sax.HTMLHighlighter
public final class HTMLHighlighter
Highlights text blocks in an HTML document that have been marked as "content"
in the corresponding TextDocument
.
Constructor Summary | |
---|---|
HTMLHighlighter(TextDocument doc,
org.xml.sax.InputSource is)
Prepares the HTMLHighlighter for the given TextDocument
and the original HTML text (as an InputSource ). |
|
HTMLHighlighter(TextDocument doc,
java.lang.String origHTML)
Prepares the HTMLHighlighter for the given TextDocument
and the original HTML text (as a String). |
Method Summary | |
---|---|
java.lang.String |
getHTML()
Returns the highlighted HTML code. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HTMLHighlighter(TextDocument doc, java.lang.String origHTML) throws BoilerpipeProcessingException
HTMLHighlighter
for the given TextDocument
and the original HTML text (as a String).
doc
- The processed TextDocument
.origHTML
- The original HTML document.
BoilerpipeProcessingException
public HTMLHighlighter(TextDocument doc, org.xml.sax.InputSource is) throws BoilerpipeProcessingException
HTMLHighlighter
for the given TextDocument
and the original HTML text (as an InputSource
). Please remember
to re-initialize the InputSource
if you have used it already for
creating the TextDocument
.
doc
- The processed TextDocument
.is
- The original HTML document.
BoilerpipeProcessingException
Method Detail |
---|
public java.lang.String getHTML()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |