public class TagFormatter extends Object implements HighlightFormatter
| Constructor and Description |
|---|
TagFormatter(String localName,
String namespaceURI) |
| Modifier and Type | Method and Description |
|---|---|
void |
highlightTerm(XMLStreamWriter writer,
String text)
Write StAX events that "highlight" the text
|
public void highlightTerm(XMLStreamWriter writer, String text) throws XMLStreamException
HighlightFormatterhighlightTerm in interface HighlightFormatterwriter - writes to the highlighted documenttext - a term or phrase that matched a query, to be highlightedXMLStreamExceptionCopyright © 2013. All Rights Reserved.