java.lang.Object
java.util.Dictionary
java.util.Hashtable
org.apache.derby.iapi.services.io.FormatableHashtable
- All Implemented Interfaces:
- java.lang.Cloneable, java.io.Externalizable, Formatable, java.util.Map, java.io.Serializable, TypedFormat
- public class FormatableHashtable
- extends java.util.Hashtable
- implements Formatable
A formatable holder for a java.util.Hashtable.
Used to avoid serializing Properties.
| Nested classes inherited from class java.util.Hashtable |
|
| Nested classes inherited from class java.util.Map |
java.util.Map.Entry |
| Fields inherited from class java.util.Hashtable |
|
| Methods inherited from class java.util.Hashtable |
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, putAll, rehash, remove, size, toString, values |
FormatableHashtable
public FormatableHashtable()
- Niladic constructor for formatable
put
public java.lang.Object put(java.lang.Object key,
java.lang.Object value)
- Our special put method that wont barf
on a null value.
- Specified by:
put in interface java.util.Map
putInt
public void putInt(java.lang.Object key,
int value)
getInt
public int getInt(java.lang.Object key)
putLong
public void putLong(java.lang.Object key,
long value)
getLong
public long getLong(java.lang.Object key)
putBoolean
public void putBoolean(java.lang.Object key,
boolean value)
getBoolean
public boolean getBoolean(java.lang.Object key)
writeExternal
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
- Write the hash table out. Step through
the enumeration and write the strings out
in UTF.
- Specified by:
writeExternal in interface java.io.Externalizable
readExternal
public void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
- Read the hash table from a stream of stored objects.
- Specified by:
readExternal in interface java.io.Externalizable
readExternal
public void readExternal(ArrayInputStream in)
throws java.io.IOException,
java.lang.ClassNotFoundException
getTypeFormatId
public int getTypeFormatId()
- Get the formatID which corresponds to this class.
- Specified by:
getTypeFormatId in interface TypedFormat