public class MSNBC_XMLHandler extends org.xml.sax.helpers.DefaultHandler implements MSNBC_Result
| Modifier and Type | Field and Description |
|---|---|
protected StringBuilder |
buffer |
protected MSNBC_NamedEntity |
currentNE |
protected List<MSNBC_NamedEntity> |
nes |
protected int |
state |
protected String |
textFileName |
| Constructor and Description |
|---|
MSNBC_XMLHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
characters(char[] ch,
int start,
int length) |
void |
endElement(String uri,
String localName,
String qName) |
List<MSNBC_NamedEntity> |
getMarkings() |
String |
getTextFileName() |
void |
startDocument() |
void |
startElement(String uri,
String localName,
String qName,
Attributes attributes) |
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl, warningprotected String textFileName
protected List<MSNBC_NamedEntity> nes
protected int state
protected MSNBC_NamedEntity currentNE
protected StringBuilder buffer
public List<MSNBC_NamedEntity> getMarkings()
getMarkings in interface MSNBC_Resultpublic String getTextFileName()
getTextFileName in interface MSNBC_Resultpublic void startDocument()
throws SAXException
startDocument in interface ContentHandlerstartDocument in class org.xml.sax.helpers.DefaultHandlerSAXExceptionpublic void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
startElement in interface ContentHandlerstartElement in class org.xml.sax.helpers.DefaultHandlerSAXExceptionpublic void characters(char[] ch,
int start,
int length)
throws SAXException
characters in interface ContentHandlercharacters in class org.xml.sax.helpers.DefaultHandlerSAXExceptionpublic void endElement(String uri, String localName, String qName) throws SAXException
endElement in interface ContentHandlerendElement in class org.xml.sax.helpers.DefaultHandlerSAXExceptionCopyright © 2014–2017. All rights reserved.