Class PropertiesUtils
- java.lang.Object
-
- io.github.shsmysore.fcmjava.client.utils.PropertiesUtils
-
public class PropertiesUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description PropertiesUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PropertiesloadProperties(Reader reader)Loads Properties from a given Reader.static PropertiesloadProperties(Path path, Charset charset)Loads a Poperties file from a given Path using a given Charset.
-
-
-
Method Detail
-
loadProperties
public static Properties loadProperties(Path path, Charset charset)
Loads a Poperties file from a given Path using a given Charset.- Parameters:
path- The File to read the Properties from.charset- The Charset used for reading the Properties file.- Returns:
- The Properties of the given file.
-
loadProperties
public static Properties loadProperties(Reader reader)
Loads Properties from a given Reader.- Parameters:
reader- The reader used for parsing the Properties.- Returns:
- The Properties of the given Reader.
-
-