Top Description Fields Constructors Methods
org.apache.derby.iapi.services.io

public Class FormatableProperties

extends Properties
implements Formatable
Class Inheritance
All Implemented Interfaces
org.apache.derby.iapi.services.io.Formatable, org.apache.derby.iapi.services.io.TypedFormat, java.io.Externalizable, java.io.Serializable
Imports
java.util.Enumeration, .Properties, java.io.IOException, .ObjectOutput, .ObjectInput

A formatable holder for a java.util.Properties. Used to avoid serializing Properties.

Field Summary

Inherited from java.util.Properties:
defaults

Constructor Summary

AccessConstructor and Description
public
FormatableProperties()

Niladic constructor for formatable

public
FormatableProperties(Properties
the defaults
defaults
)

Creates an empty property list with the specified defaults.

Method Summary

Modifier and TypeMethod and Description
public void
clearDefaults()

Clear the defaults from this Properties set.

public int

Returns:

the formatID of this class
getTypeFormatId
()

Implements org.apache.derby.iapi.services.io.TypedFormat.getTypeFormatId.

Get the formatID which corresponds to this class.

public void
readExternal(ObjectInput
read this.
in
)

Implements java.io.Externalizable.readExternal.

Read the properties from a stream of stored objects.

public void
writeExternal(ObjectOutput
write bytes here
out
)

Implements java.io.Externalizable.writeExternal.

Write the properties out.

Inherited from java.util.Properties:
clearclonecomputecomputeIfAbsentcomputeIfPresentcontainscontainsKeycontainsValueelementsentrySetequalsforEachgetgetOrDefaultgetPropertygetPropertyhashCodeisEmptykeyskeySetlistlistloadloadloadFromXMLmergepropertyNamesputputAllputIfAbsentrehashremoveremovereplacereplacereplaceAllsavesetPropertysizestorestorestoreToXMLstoreToXMLstoreToXMLstringPropertyNamestoStringvalues

Constructor Detail

FormatablePropertiesback to summary
public FormatableProperties()

Niladic constructor for formatable

FormatablePropertiesback to summary
public FormatableProperties(Properties defaults)

Creates an empty property list with the specified defaults.

Parameters
defaults:Properties

the defaults

Method Detail

clearDefaultsback to summary
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.

getTypeFormatIdback to summary
public int getTypeFormatId()

Implements org.apache.derby.iapi.services.io.TypedFormat.getTypeFormatId.

Get the formatID which corresponds to this class.

Returns:int

the formatID of this class

readExternalback to summary
public void readExternal(ObjectInput in) throws IOException

Implements java.io.Externalizable.readExternal.

Read the properties from a stream of stored objects.

Parameters
in:ObjectInput

read this.

Exceptions
IOException:
thrown on error
writeExternalback to summary
public void writeExternal(ObjectOutput out) throws IOException

Implements java.io.Externalizable.writeExternal.

Write the properties out. Step through the enumeration and write the strings out in UTF.

Parameters
out:ObjectOutput

write bytes here

Exceptions
IOException:
thrown on error