Class NonJsonReadWriteUtils
java.lang.Object
edu.university.ecs.lab.common.utils.NonJsonReadWriteUtils
Utility class for reading files that don't abide by JSON format
-
Constructor Summary
ModifierConstructorDescriptionprivate
Private constructor to prevent instantiation. -
Method Summary
Modifier and TypeMethodDescriptionstatic ConfigFile
readFromDocker
(String path, Config config) static ConfigFile
readFromGradle
(String path, Config config) static ConfigFile
readFromPom
(String path, Config config) static ConfigFile
readFromYaml
(String path, Config config) This method reads YAML from a file returning structure as JsonObject
-
Constructor Details
-
NonJsonReadWriteUtils
private NonJsonReadWriteUtils()Private constructor to prevent instantiation.
-
-
Method Details
-
readFromYaml
This method reads YAML from a file returning structure as JsonObject- Parameters:
path
- the path to the YAML file.- Returns:
- JsonObject YAML file structure as json object
-
readFromDocker
-
readFromPom
-
readFromGradle
-