Open SiteSearch 4.1.1
Final

ORG.oclc.util
Class IniFileSection

java.lang.Object
  |
  +--java.util.Dictionary
        |
        +--java.util.Hashtable
              |
              +--ORG.oclc.util.IniFileSection

public class IniFileSection
extends Hashtable

IniFileSection provides facitilities to manage a section of an windows .ini file.

See Also:
oclc.guidon.util.IniFile, Serialized Form

Constructor Summary
IniFileSection(String key)
           
IniFileSection(String key, boolean preserveOrder)
           
 
Method Summary
 void clearHash()
          Clears saved data used in reading the section.
 void dump(PrintStream ps)
           
 boolean getBooleanValue(String key)
           
 boolean getBooleanValue(String key, boolean defaultValue)
           
 byte getByteValue(String key)
           
 byte getByteValue(String key, byte defaultValue)
           
 double getDoubleValue(String key)
           
 double getDoubleValue(String key, double defaultValue)
           
 float getFloatValue(String key)
           
 float getFloatValue(String key, float defaultValue)
           
 int getIntValue(String key)
           
 int getIntValue(String key, int defaultValue)
           
 String[] getKeys()
           
 long getLongValue(String key)
           
 long getLongValue(String key, long defaultValue)
           
 String getName()
          Returns the name of the section.
 short getShortValue(String key)
           
 short getShortValue(String key, short defaultValue)
           
 String getStringValue(String key)
           
 String getStringValue(String key, String defaultValue)
           
 String getValue(String key)
           
 Vector includes()
          Returns a Vector object containing the names of the include files for the section.
 void putValue(String key, Object s)
           
 void removeValue(String key)
           
 String toString()
           
 void writeSection(BufferedWriter f)
          Writes the section data to the input BufferedWriter.
 
Methods inherited from class java.util.Hashtable
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IniFileSection

public IniFileSection(String key)

IniFileSection

public IniFileSection(String key,
                      boolean preserveOrder)
Method Detail

includes

public Vector includes()
Returns a Vector object containing the names of the include files for the section.
Returns:
Vector

clearHash

public void clearHash()
Clears saved data used in reading the section.

getName

public String getName()
Returns the name of the section.
Returns:
String

writeSection

public void writeSection(BufferedWriter f)
Writes the section data to the input BufferedWriter.
Parameters:
f - the output buffer

getKeys

public String[] getKeys()

dump

public void dump(PrintStream ps)

toString

public String toString()
Overrides:
toString in class Hashtable

putValue

public void putValue(String key,
                     Object s)

removeValue

public void removeValue(String key)

getValue

public String getValue(String key)

getStringValue

public String getStringValue(String key)
                      throws IniMissingValueException

getStringValue

public String getStringValue(String key,
                             String defaultValue)

getIntValue

public int getIntValue(String key)
                throws IniMissingValueException,
                       IniInvalidValueException

getIntValue

public int getIntValue(String key,
                       int defaultValue)

getBooleanValue

public boolean getBooleanValue(String key)
                        throws IniMissingValueException,
                               IniInvalidValueException

getBooleanValue

public boolean getBooleanValue(String key,
                               boolean defaultValue)

getByteValue

public byte getByteValue(String key)
                  throws IniMissingValueException,
                         IniInvalidValueException

getByteValue

public byte getByteValue(String key,
                         byte defaultValue)

getShortValue

public short getShortValue(String key)
                    throws IniMissingValueException,
                           IniInvalidValueException

getShortValue

public short getShortValue(String key,
                           short defaultValue)

getLongValue

public long getLongValue(String key)
                  throws IniMissingValueException,
                         IniInvalidValueException

getLongValue

public long getLongValue(String key,
                         long defaultValue)

getFloatValue

public float getFloatValue(String key)
                    throws IniMissingValueException,
                           IniInvalidValueException

getFloatValue

public float getFloatValue(String key,
                           float defaultValue)

getDoubleValue

public double getDoubleValue(String key)
                      throws IniMissingValueException,
                             IniInvalidValueException

getDoubleValue

public double getDoubleValue(String key,
                             double defaultValue)

Open SiteSearch 4.1.1
Final