Package anlavn.file
Class Properties
java.lang.Object
anlavn.file.Properties
The Properties class supports to get value of properties at specific location.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetBoolean
(String key) Use this method to get a Boolean value from given key.getInteger
(String key) Use this method to get a Integer value from given key.Use this method to get a String value from given key.
-
Constructor Details
-
Properties
Open a properties file at specified location.- Parameters:
filePath
- is location of Properties file, it can be local path in computer or link address. File name extension must be ".properties".
-
-
Method Details
-
getString
Use this method to get a String value from given key.- Parameters:
key
- a string key in Properties file.- Returns:
- String value of key in Properties file.
-
getBoolean
Use this method to get a Boolean value from given key.- Parameters:
key
- a string key in Properties file.- Returns:
- Boolean value of key in Properties file.
-
getInteger
Use this method to get a Integer value from given key.- Parameters:
key
- a string key in Properties file.- Returns:
- Integer value of key in Properties file.
-