Package org.esa.snap.core.gpf.graph
Class GraphIO
java.lang.Object
org.esa.snap.core.gpf.graph.GraphIO
-
Method Details
-
write
Serializes the givengraphinto XML- Parameters:
graph- thegraphto write into XMLwriter- the writer to use for serialization.
-
read
Deserializes agraphfrom an XML Reader.- Parameters:
reader- the readerto use for deserialization- Returns:
- the deserialized
graph - Throws:
GraphException- if an error occurs during reading
-
read
Deserializes aGraphfrom a XML Reader using a mapping for the substitution of template variables inside the XML-basedGraphdefinition.- Parameters:
reader- the XML readervariables- a mapping from template variable names to their string values.- Returns:
- the deserialized
graph - Throws:
GraphException- if an error occurs during reading
-