Class FormatableProperties
- java.lang.Object
-
- java.util.Dictionary<K,V>
-
- java.util.Hashtable<java.lang.Object,java.lang.Object>
-
- java.util.Properties
-
- org.apache.derby.iapi.services.io.FormatableProperties
-
- All Implemented Interfaces:
java.io.Externalizable,java.io.Serializable,java.lang.Cloneable,java.util.Map<java.lang.Object,java.lang.Object>,Formatable,TypedFormat
public class FormatableProperties extends java.util.Properties implements Formatable
A formatable holder for a java.util.Properties. Used to avoid serializing Properties.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FormatableProperties()Niladic constructor for formatableFormatableProperties(java.util.Properties defaults)Creates an empty property list with the specified defaults.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearDefaults()Clear the defaults from this Properties set.intgetTypeFormatId()Get the formatID which corresponds to this class.voidreadExternal(java.io.ObjectInput in)Read the properties from a stream of stored objects.voidwriteExternal(java.io.ObjectOutput out)Write the properties out.-
Methods inherited from class java.util.Properties
clear, clone, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, get, getOrDefault, getProperty, getProperty, hashCode, isEmpty, keys, keySet, list, list, load, load, loadFromXML, merge, propertyNames, put, putAll, putIfAbsent, rehash, remove, remove, replace, replace, replaceAll, save, setProperty, size, store, store, storeToXML, storeToXML, storeToXML, stringPropertyNames, toString, values
-
-
-
-
Method Detail
-
clearDefaults
public void clearDefaults()
Clear the defaults from this Properties set. This sets the default field to null and thus breaks any link with the Properties set that was the default.
-
writeExternal
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOExceptionWrite the properties out. Step through the enumeration and write the strings out in UTF.- Specified by:
writeExternalin interfacejava.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.IOExceptionRead the properties from a stream of stored objects.- Specified by:
readExternalin interfacejava.io.Externalizable- Parameters:
in- read this.- Throws:
java.io.IOException- thrown on error
-
getTypeFormatId
public int getTypeFormatId()
Get the formatID which corresponds to this class.- Specified by:
getTypeFormatIdin interfaceTypedFormat- Returns:
- the formatID of this class
-
-