public class SemEvalCorpusReader.SemEvalHandler extends org.xml.sax.helpers.DefaultHandler
Constructor and Description |
---|
SemEvalCorpusReader.SemEvalHandler() |
Modifier and Type | Method and Description |
---|---|
void |
characters(char[] ch,
int start,
int length)
Appends the text to the current context.
|
void |
endElement(String uri,
String localName,
String name)
Ends the current context and stores all of the information in
contexts . |
void |
startElement(String uri,
String localName,
String name,
Attributes atts)
Extracts the instance id for the current context.
|
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
public void startElement(String uri, String localName, String name, Attributes atts) throws SAXException
startElement
in interface ContentHandler
startElement
in class org.xml.sax.helpers.DefaultHandler
SAXException
public void endElement(String uri, String localName, String name) throws SAXException
contexts
.endElement
in interface ContentHandler
endElement
in class org.xml.sax.helpers.DefaultHandler
SAXException
public void characters(char[] ch, int start, int length) throws SAXException
characters
in interface ContentHandler
characters
in class org.xml.sax.helpers.DefaultHandler
SAXException
Copyright © 2012. All Rights Reserved.