Class FormatableProperties
java.lang.Object
java.util.Dictionary<Object,Object>
java.util.Hashtable<Object,Object>
java.util.Properties
org.apache.derby.iapi.services.io.FormatableProperties
- All Implemented Interfaces:
Externalizable
,Serializable
,Cloneable
,Map<Object,
,Object> Formatable
,TypedFormat
A formatable holder for a java.util.Properties.
Used to avoid serializing Properties.
- See Also:
-
Field Summary
Fields inherited from class java.util.Properties
defaults
-
Constructor Summary
ConstructorsConstructorDescriptionNiladic constructor for formatableFormatableProperties
(Properties defaults) Creates an empty property list with the specified defaults. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Clear the defaults from this Properties set.int
Get the formatID which corresponds to this class.void
Read the properties from a stream of stored objects.void
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
-
Constructor Details
-
FormatableProperties
public FormatableProperties()Niladic constructor for formatable -
FormatableProperties
Creates an empty property list with the specified defaults.- Parameters:
defaults
- the defaults
-
-
Method Details
-
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
Write the properties out. Step through the enumeration and write the strings out in UTF.- Specified by:
writeExternal
in interfaceExternalizable
- Parameters:
out
- write bytes here- Throws:
IOException
- thrown on error
-
readExternal
Read the properties from a stream of stored objects.- Specified by:
readExternal
in interfaceExternalizable
- Parameters:
in
- read this.- Throws:
IOException
- thrown on error
-
getTypeFormatId
public int getTypeFormatId()Get the formatID which corresponds to this class.- Specified by:
getTypeFormatId
in interfaceTypedFormat
- Returns:
- the formatID of this class
-