Package de.alpharogroup.yaml
Class PropertiesToYamlExtensions
- java.lang.Object
-
- de.alpharogroup.yaml.PropertiesToYamlExtensions
-
public class PropertiesToYamlExtensions extends java.lang.ObjectThe classPropertiesToYamlExtensionsprovides methods for convert properties to yaml files
-
-
Constructor Summary
Constructors Constructor Description PropertiesToYamlExtensions()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidtoYamlFile(@NonNull java.io.File propertiesFile, @NonNull java.io.File newYamlFileToWrite)Converts the given properties file to a given new yaml filestatic java.lang.StringtoYamlString(@NonNull java.io.File propertiesFile)Converts the given properties file to a yaml stringstatic java.lang.StringtoYamlString(@NonNull java.lang.String propertiesFilename)Resolves the properties file from the given file name and converts it to a yaml string
-
-
-
Method Detail
-
toYamlString
public static java.lang.String toYamlString(@NonNull @NonNull java.io.File propertiesFile)Converts the given properties file to a yaml string- Parameters:
propertiesFile- the properties file- Returns:
- the yaml string
-
toYamlString
public static java.lang.String toYamlString(@NonNull @NonNull java.lang.String propertiesFilename)Resolves the properties file from the given file name and converts it to a yaml string- Parameters:
propertiesFilename- the properties filename- Returns:
- the yaml string
-
toYamlFile
public static void toYamlFile(@NonNull @NonNull java.io.File propertiesFile, @NonNull @NonNull java.io.File newYamlFileToWrite) throws java.io.IOExceptionConverts the given properties file to a given new yaml file- Parameters:
propertiesFile- the properties filenewYamlFileToWrite- the new yaml file to write- Throws:
java.io.IOException- Signals that an I/O exception has occurred
-
-