lux.search.highlight
Class HtmlBoldFormatter

java.lang.Object
  extended by lux.search.highlight.HtmlBoldFormatter
All Implemented Interfaces:
HighlightFormatter

public class HtmlBoldFormatter
extends Object
implements HighlightFormatter


Constructor Summary
HtmlBoldFormatter()
           
 
Method Summary
 void highlightTerm(XMLStreamWriter writer, String text)
          Write StAX events that "highlight" the text
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HtmlBoldFormatter

public HtmlBoldFormatter()
Method Detail

highlightTerm

public void highlightTerm(XMLStreamWriter writer,
                          String text)
                   throws XMLStreamException
Description copied from interface: HighlightFormatter
Write StAX events that "highlight" the text

Specified by:
highlightTerm in interface HighlightFormatter
Parameters:
writer - writes to the highlighted document
text - a term or phrase that matched a query, to be highlighted
Throws:
XMLStreamException


Copyright © 2013. All Rights Reserved.