Open SiteSearch 4.1.1
Final

ORG.oclc.ber
Class BerProperties

java.lang.Object
  |
  +--ORG.oclc.ber.BerProperties

public class BerProperties
extends Object
implements RichProperties

BerProperties is a class for maintaining a two level properties table with a BER serialization form.


Constructor Summary
BerProperties()
           
BerProperties(BerString data)
           
 
Method Summary
 boolean getBooleanValue(String sectionName, String key)
           
 boolean getBooleanValue(String sectionName, String key, boolean defVal)
           
 byte getByteValue(String sectionName, String key)
           
 byte getByteValue(String sectionName, String key, byte defaultValue)
           
 double getDoubleValue(String sectionName, String key)
           
 double getDoubleValue(String sectionName, String key, double defaultValue)
           
 float getFloatValue(String sectionName, String key)
           
 float getFloatValue(String sectionName, String key, float defaultValue)
           
 int getIntValue(String sectionName, String key)
           
 int getIntValue(String sectionName, String key, int defaultValue)
           
 long getLongValue(String sectionName, String key)
           
 long getLongValue(String sectionName, String key, long defaultValue)
           
 Enumeration getSectionKeys(String sectionName)
           
 Enumeration getSections()
           
 short getShortValue(String sectionName, String key)
           
 short getShortValue(String sectionName, String key, short defaultValue)
           
 String getStringValue(String sectionName, String key)
           
 String getStringValue(String sectionName, String key, String defVal)
           
 String getValue(String sectionName, String key)
           
 String getValue(String sectionName, String key, String defaultValue)
           
 boolean put(String sectionName, String key, boolean value)
           
 int put(String sectionName, String key, int value)
           
 String put(String sectionName, String key, String value)
           
 BerString save()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BerProperties

public BerProperties()

BerProperties

public BerProperties(BerString data)
Method Detail

getBooleanValue

public boolean getBooleanValue(String sectionName,
                               String key)
                        throws IniMissingSectionException,
                               IniMissingValueException,
                               IniInvalidValueException
Specified by:
getBooleanValue in interface RichProperties

getBooleanValue

public boolean getBooleanValue(String sectionName,
                               String key,
                               boolean defVal)
Specified by:
getBooleanValue in interface RichProperties

getByteValue

public byte getByteValue(String sectionName,
                         String key)
                  throws IniMissingSectionException,
                         IniMissingValueException,
                         IniInvalidValueException
Specified by:
getByteValue in interface RichProperties

getByteValue

public byte getByteValue(String sectionName,
                         String key,
                         byte defaultValue)
Specified by:
getByteValue in interface RichProperties

getDoubleValue

public double getDoubleValue(String sectionName,
                             String key)
                      throws IniMissingSectionException,
                             IniMissingValueException,
                             IniInvalidValueException
Specified by:
getDoubleValue in interface RichProperties

getDoubleValue

public double getDoubleValue(String sectionName,
                             String key,
                             double defaultValue)
Specified by:
getDoubleValue in interface RichProperties

getFloatValue

public float getFloatValue(String sectionName,
                           String key)
                    throws IniMissingSectionException,
                           IniMissingValueException,
                           IniInvalidValueException
Specified by:
getFloatValue in interface RichProperties

getFloatValue

public float getFloatValue(String sectionName,
                           String key,
                           float defaultValue)
Specified by:
getFloatValue in interface RichProperties

getIntValue

public int getIntValue(String sectionName,
                       String key)
                throws IniMissingSectionException,
                       IniMissingValueException,
                       IniInvalidValueException
Specified by:
getIntValue in interface RichProperties

getIntValue

public int getIntValue(String sectionName,
                       String key,
                       int defaultValue)
Specified by:
getIntValue in interface RichProperties

getLongValue

public long getLongValue(String sectionName,
                         String key)
                  throws IniMissingSectionException,
                         IniMissingValueException,
                         IniInvalidValueException
Specified by:
getLongValue in interface RichProperties

getLongValue

public long getLongValue(String sectionName,
                         String key,
                         long defaultValue)
Specified by:
getLongValue in interface RichProperties

getSections

public Enumeration getSections()
Specified by:
getSections in interface RichProperties

getSectionKeys

public Enumeration getSectionKeys(String sectionName)
Specified by:
getSectionKeys in interface RichProperties

getShortValue

public short getShortValue(String sectionName,
                           String key)
                    throws IniMissingSectionException,
                           IniMissingValueException,
                           IniInvalidValueException
Specified by:
getShortValue in interface RichProperties

getShortValue

public short getShortValue(String sectionName,
                           String key,
                           short defaultValue)
Specified by:
getShortValue in interface RichProperties

getStringValue

public String getStringValue(String sectionName,
                             String key)
                      throws IniMissingSectionException,
                             IniMissingValueException
Specified by:
getStringValue in interface RichProperties

getStringValue

public String getStringValue(String sectionName,
                             String key,
                             String defVal)
Specified by:
getStringValue in interface RichProperties

getValue

public String getValue(String sectionName,
                       String key)
Specified by:
getValue in interface RichProperties

getValue

public String getValue(String sectionName,
                       String key,
                       String defaultValue)
Specified by:
getValue in interface RichProperties

put

public boolean put(String sectionName,
                   String key,
                   boolean value)

put

public int put(String sectionName,
               String key,
               int value)

put

public String put(String sectionName,
                  String key,
                  String value)

save

public BerString save()

toString

public String toString()
Overrides:
toString in class Object

Open SiteSearch 4.1.1
Final