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, warning
public void setDocumentLocator(Locator locator)
setDocumentLocator
in interface ContentHandler
setDocumentLocator
in class org.xml.sax.helpers.DefaultHandler
public 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 ContentHandler
characters
in class org.xml.sax.helpers.DefaultHandler
SAXException
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
startElement
in interface ContentHandler
startElement
in class org.xml.sax.helpers.DefaultHandler
SAXException
public void endElement(String uri, String localName, String qName) throws SAXException
endElement
in interface ContentHandler
endElement
in class org.xml.sax.helpers.DefaultHandler
SAXException
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.