Package com.powsybl.iidm.xml
Class NetworkXml
- java.lang.Object
-
- com.powsybl.iidm.xml.NetworkXml
-
public final class NetworkXml extends Object
- Author:
- Geoffroy Jamgotchian
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Network
copy(Network network)
Deep copy of the network using XML converter.static Network
copy(Network network, NetworkFactory networkFactory)
Deep copy of the network using XML converter.static Network
copy(Network network, NetworkFactory networkFactory, ExecutorService executor)
static Network
gunzip(byte[] networkXmlGz)
static byte[]
gzip(Network network)
static Network
read(ReadOnlyDataSource dataSource, NetworkFactory networkFactory, ImportOptions options, String dataSourceExt)
static Network
read(InputStream is)
static Network
read(InputStream is, ImportOptions config, Anonymizer anonymizer)
static Network
read(InputStream is, ImportOptions config, Anonymizer anonymizer, NetworkFactory networkFactory)
static Network
read(Path xmlFile)
static Network
read(Path xmlFile, ImportOptions options)
static void
update(Network network, InputStream is)
static void
update(Network network, Path xmlFile)
static void
validate(InputStream is)
static void
validate(Path file)
static Network
validateAndRead(Path xmlFile)
static Network
validateAndRead(Path xmlFile, ImportOptions options)
static Anonymizer
write(Network network, ExportOptions options, DataSource dataSource, String dataSourceExt)
static Anonymizer
write(Network n, ExportOptions options, OutputStream os)
static Anonymizer
write(Network n, ExportOptions options, Path xmlFile)
static Anonymizer
write(Network n, OutputStream os)
static Anonymizer
write(Network n, Path xmlFile)
static Anonymizer
writeAndValidate(Network n, ExportOptions options, Path xmlFile)
static Anonymizer
writeAndValidate(Network n, Path xmlFile)
-
-
-
Method Detail
-
validate
public static void validate(InputStream is)
-
validate
public static void validate(Path file)
-
write
public static Anonymizer write(Network n, ExportOptions options, OutputStream os)
-
write
public static Anonymizer write(Network n, OutputStream os)
-
write
public static Anonymizer write(Network n, ExportOptions options, Path xmlFile)
-
write
public static Anonymizer write(Network n, Path xmlFile)
-
write
public static Anonymizer write(Network network, ExportOptions options, DataSource dataSource, String dataSourceExt) throws IOException
- Throws:
IOException
-
writeAndValidate
public static Anonymizer writeAndValidate(Network n, Path xmlFile)
-
writeAndValidate
public static Anonymizer writeAndValidate(Network n, ExportOptions options, Path xmlFile)
-
read
public static Network read(InputStream is)
-
read
public static Network read(InputStream is, ImportOptions config, Anonymizer anonymizer)
-
read
public static Network read(InputStream is, ImportOptions config, Anonymizer anonymizer, NetworkFactory networkFactory)
-
read
public static Network read(ReadOnlyDataSource dataSource, NetworkFactory networkFactory, ImportOptions options, String dataSourceExt) throws IOException
- Throws:
IOException
-
read
public static Network read(Path xmlFile, ImportOptions options)
-
validateAndRead
public static Network validateAndRead(Path xmlFile, ImportOptions options)
-
update
public static void update(Network network, InputStream is)
-
gzip
public static byte[] gzip(Network network)
-
gunzip
public static Network gunzip(byte[] networkXmlGz)
-
copy
public static Network copy(Network network)
Deep copy of the network using XML converter.- Parameters:
network
- the network to copy- Returns:
- the copy of the network
-
copy
public static Network copy(Network network, NetworkFactory networkFactory)
Deep copy of the network using XML converter.- Parameters:
network
- the network to copynetworkFactory
- the network factory to use for the copy- Returns:
- the copy of the network
-
copy
public static Network copy(Network network, NetworkFactory networkFactory, ExecutorService executor)
-
-