org.apache.derby.iapi.services.io
Class FormatableHashtable
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.
- See Also:
- Serialized Form
Nested classes inherited from class java.util.Hashtable |
|
Fields inherited from class java.util.Hashtable |
|
Method Summary |
boolean |
getBoolean(java.lang.Object key)
|
int |
getInt(java.lang.Object key)
|
long |
getLong(java.lang.Object key)
|
int |
getTypeFormatId()
Get the formatID which corresponds to this class. |
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value)
Our special put method that wont barf
on a null value. |
void |
putBoolean(java.lang.Object key,
boolean value)
|
void |
putInt(java.lang.Object key,
int value)
|
void |
putLong(java.lang.Object key,
long value)
|
void |
readExternal(ArrayInputStream in)
|
void |
readExternal(java.io.ObjectInput in)
Read the hash table from a stream of stored objects. |
void |
writeExternal(java.io.ObjectOutput out)
Write the hash table out. |
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 |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
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
- See Also:
Hashtable
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
- Parameters:
out
- write bytes here
- Throws:
java.io.IOException
- thrown on error
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
- Parameters:
in
- read this.
- Throws:
java.io.IOException
- thrown on error
java.lang.ClassNotFoundException
- thrown on error
readExternal
public void readExternal(ArrayInputStream in)
throws java.io.IOException,
java.lang.ClassNotFoundException
- 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
- Returns:
- the formatID of this class
Apache Derby V10.0 Engine Documentation - Copyright © 1997,2004 The Apache Software Foundation or its licensors, as applicable.