public class GraphIO extends Object
Modifier and Type | Method and Description |
---|---|
static Graph |
read(Reader reader)
Deserializes a
graph from an XML Reader. |
static Graph |
read(Reader reader,
Map<String,String> variables)
|
static void |
write(Graph graph,
Writer writer)
Serializes the given
graph into XML |
public static void write(Graph graph, Writer writer)
graph
into XMLgraph
- the graph
to write into XMLwriter
- the writer to use for serialization.public static Graph read(Reader reader) throws GraphException
graph
from an XML Reader.reader
- the readerto use for deserializationgraph
GraphException
- if an error occurs during readingpublic static Graph read(Reader reader, Map<String,String> variables) throws GraphException
Graph
from a XML Reader using a mapping
for the substitution of template variables inside the XML-based
Graph
definition.reader
- the XML readervariables
- a mapping from template variable names to their string values.graph
GraphException
- if an error occurs during readingCopyright © 2014–2017 European Space Agency (ESA). All rights reserved.