public class NetworkXMLParser
extends java.lang.Object
Constructor and Description |
---|
NetworkXMLParser() |
Modifier and Type | Method and Description |
---|---|
static NetworkXMLParser |
instance() |
Network |
parse(java.io.File file)
Parse a new network from an xml file.
|
Network |
parse(java.net.URL uri)
Parse a new network from an xml uri.
|
java.lang.String |
toXML(Network network)
Covert the network into xml.
|
void |
toXML(Network network,
java.io.File file)
Covert the network into xml and write to the file.
|
void |
writeXML(Network network,
java.io.Writer writer)
Covert the network into xml using the writer.
|
public static NetworkXMLParser instance()
public Network parse(java.io.File file)
public Network parse(java.net.URL uri)
public java.lang.String toXML(Network network)
public void toXML(Network network, java.io.File file)
public void writeXML(Network network, java.io.Writer writer)