public class XcasProcessor extends org.xml.sax.helpers.DefaultHandler
XcasDiff can be used to compare XCASes from
different type systems.| Constructor and Description |
|---|
XcasProcessor()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
characters(char[] ch,
int start,
int length) |
void |
endElement(String uri,
String localName,
String qName) |
XcasFile |
process(File f)
Parses the specified file and returns a parsed
XcasFile object. |
XcasFile |
process(String f)
Parses the specified file and returns a parsed
XcasFile object. |
void |
setDocumentLocator(Locator locator) |
void |
startElement(String uri,
String localName,
String qName,
Attributes attributes) |
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warningpublic void setDocumentLocator(Locator locator)
setDocumentLocator in interface ContentHandlersetDocumentLocator in class org.xml.sax.helpers.DefaultHandlerpublic XcasFile process(File f)
XcasFile object.f - A File object.XcasFile object.public XcasFile process(String f)
XcasFile object.f - File name.XcasFile object.public void characters(char[] ch,
int start,
int length)
throws SAXException
characters in interface ContentHandlercharacters 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 endElement(String uri, String localName, String qName) throws SAXException
endElement in interface ContentHandlerendElement in class org.xml.sax.helpers.DefaultHandlerSAXExceptionCopyright © 2012-2021 The Apache Software Foundation. All Rights Reserved.