agjava.util
Class mProperties

java.lang.Object
  |
  +--agjava.util.mProperties

public class mProperties
extends java.lang.Object


Constructor Summary
mProperties(java.lang.String fileName)
          Constructor Datails: fileName: Propertie File name.
 
Method Summary
 java.lang.String findValue(java.lang.String val)
          Find a Value and return the Key name.
 java.lang.String getString(java.lang.String k)
          Get a String value from specified Key.
 java.lang.String getString(java.lang.String k, java.lang.String def)
          Get a String value from specified Key.
 void reload()
          Reload Properties.
 void save()
          Save Properties file.
 void setString(java.lang.String k, java.lang.String vlr)
          Set a String Key value.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

mProperties

public mProperties(java.lang.String fileName)
Constructor Datails: fileName: Propertie File name.
Method Detail

findValue

public java.lang.String findValue(java.lang.String val)
Find a Value and return the Key name. If Value not found, return "null".

getString

public java.lang.String getString(java.lang.String k)
Get a String value from specified Key. Return a blank String as Default Value.

getString

public java.lang.String getString(java.lang.String k,
                                  java.lang.String def)
Get a String value from specified Key. Return the specified String as Default Value.

reload

public void reload()
Reload Properties.

save

public void save()
Save Properties file.

setString

public void setString(java.lang.String k,
                      java.lang.String vlr)
Set a String Key value.