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
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 |
IniFileSection
public IniFileSection(String key)
IniFileSection
public IniFileSection(String key,
boolean preserveOrder)
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)