public class XmlHighlighter extends SaxonDocBuilder
writer| Constructor and Description |
|---|
XmlHighlighter(net.sf.saxon.s9api.Processor processor,
IndexConfiguration indexConfig,
HighlightFormatter highlighter) |
| Modifier and Type | Method and Description |
|---|---|
void |
handleEvent(XMLStreamReader reader,
int eventType)
This method receives StAX events.
|
net.sf.saxon.s9api.XdmNode |
highlight(org.apache.lucene.search.Query query,
net.sf.saxon.om.NodeInfo node) |
void |
reset()
reinitialize any internal state and prepare the handler for re-use
|
getDocument, getOffsetspublic XmlHighlighter(net.sf.saxon.s9api.Processor processor,
IndexConfiguration indexConfig,
HighlightFormatter highlighter)
public net.sf.saxon.s9api.XdmNode highlight(org.apache.lucene.search.Query query,
net.sf.saxon.om.NodeInfo node)
throws XMLStreamException,
net.sf.saxon.s9api.SaxonApiException
XMLStreamExceptionnet.sf.saxon.s9api.SaxonApiExceptionpublic void reset()
StAXHandlerreset in interface StAXHandlerreset in class SaxonDocBuilderpublic void handleEvent(XMLStreamReader reader, int eventType) throws XMLStreamException
StAXHandlerhandleEvent in interface StAXHandlerhandleEvent in class SaxonDocBuilderreader - the reader from which events are being readeventType - the XML stream event typeXMLStreamExceptionCopyright © 2013. All Rights Reserved.