Class LimitReductionListSerDeUtil
java.lang.Object
com.powsybl.security.json.limitreduction.LimitReductionListSerDeUtil
- Author:
- Olivier Perrin <olivier.perrin at rte-france.com>
-
Method Summary
Modifier and TypeMethodDescriptionstatic LimitReductionList
read
(InputStream is) Read a limit reduction list from an output stream on a JSON.static LimitReductionList
Read a limit reduction list from a JSON file.static void
write
(LimitReductionList limitReductionList, OutputStream outputStream) Write a limit reduction list as JSON to an output stream.static void
write
(LimitReductionList limitReductionList, Path jsonFile) Write a limit reduction list as JSON to a file.
-
Method Details
-
read
Read a limit reduction list from a JSON file.- Parameters:
jsonFile
- the JSON file containing the serialized limit reduction list.
-
read
Read a limit reduction list from an output stream on a JSON.- Parameters:
is
- an input stream on the JSON serialized limit reduction list.
-
write
Write a limit reduction list as JSON to a file.- Parameters:
limitReductionList
- the reduction list to serializejsonFile
- aPath
where to serialize the reduction list
-
write
Write a limit reduction list as JSON to an output stream.- Parameters:
limitReductionList
- the reduction list to serializeoutputStream
- the output stream to use for the serialization
-