Package org.whitesource.fs.configuration
Class ConfigurationSerializer<T>
- java.lang.Object
-
- org.whitesource.fs.configuration.ConfigurationSerializer<T>
-
public class ConfigurationSerializer<T> extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ConfigurationSerializer()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T> java.util.PropertiesgetAsProperties(T object)<T> java.lang.StringgetAsString(T object, boolean includeNulls)static <T> TgetFromString(java.lang.String json, java.lang.Class<T> typeParameterClass, boolean includeNulls)FSAConfigurationload(java.lang.String fileInput)booleansave(T object, java.lang.String fileOutput, boolean includeNulls)booleansaveYaml(T object, java.lang.String fileOutput)
-
-
-
Method Detail
-
load
public FSAConfiguration load(java.lang.String fileInput) throws java.io.IOException
- Throws:
java.io.IOException
-
save
public boolean save(T object, java.lang.String fileOutput, boolean includeNulls)
-
saveYaml
public boolean saveYaml(T object, java.lang.String fileOutput)
-
getAsString
public <T> java.lang.String getAsString(T object, boolean includeNulls)
-
getAsProperties
public static <T> java.util.Properties getAsProperties(T object)
-
getFromString
public static <T> T getFromString(java.lang.String json, java.lang.Class<T> typeParameterClass, boolean includeNulls)
-
-