public class ReducedGraphParser extends GsXMLHelper
Constructor and Description |
---|
ReducedGraphParser() |
ReducedGraphParser(Set<String> set,
Attributes attributes,
String s_dtd) |
ReducedGraphParser(Set<String> set,
Attributes attributes,
String s_dtd,
String s_filename) |
Modifier and Type | Method and Description |
---|---|
void |
endElement(String uri,
String localName,
String qName) |
Graph |
getGraph() |
void |
parse(File file,
Set<String> set,
Graph graph)
create a new ReducedGraph from a file.
|
void |
startElement(String uri,
String localName,
String qName,
Attributes attributes) |
addCall, addCall, addCall, addCall, addCall, addEntity, characters, endElement, error, getAttributeValueWithDefault, getWarnings, resolveEntity, startElement, startParsing, startParsing, startParsing, startParsing, warning
endDocument, endPrefixMapping, fatalError, ignorableWhitespace, notationDecl, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl
public ReducedGraphParser(Set<String> set, Attributes attributes, String s_dtd, String s_filename) throws GsException
set
- attributes
- s_dtd
- s_filename
- GsException
public ReducedGraphParser(Set<String> set, Attributes attributes, String s_dtd) throws GsException
GsException
public ReducedGraphParser()
public void parse(File file, Set<String> set, Graph graph) throws GsException
file
- the file to read.set
- graph
- the graph to fill with this data.GsException
public void endElement(String uri, String localName, String qName) throws SAXException
endElement
in interface ContentHandler
endElement
in class XMLHelper
SAXException
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
startElement
in interface ContentHandler
startElement
in class XMLHelper
SAXException
public Graph getGraph()
getGraph
in class GsXMLHelper
Copyright © 2005–2020. All rights reserved.