Package com.anlavn.file
Class Properties
java.lang.Object
com.anlavn.file.Properties
The Properties class supports to get value of properties at specific location.
-
Constructor Summary
ConstructorsConstructorDescriptionCreate a default Properties file.Properties(String filePath) Create a properties file at location filePath. -
Method Summary
Modifier and TypeMethodDescriptionUse this method to get a string value from given key.final voidsetProperties(String filePath) Use this method to setup Properties file location.
-
Constructor Details
-
Properties
public Properties()Create a default Properties file. -
Properties
Create a properties file at location filePath.- Parameters:
filePath- is specific location of Properties file, file name extension must be ".properties".
-
-
Method Details
-
setProperties
Use this method to setup Properties file location.- Parameters:
filePath- is specific location of Properties file, file name extension must be ".properties".- See Also:
-
getString
Use this method to get a string value from given key.- Parameters:
Key- a string key in Properties file.- Returns:
- a string value of key in Properties file.
-