Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.derby.iapi.services.io
Class FormatableProperties  view FormatableProperties download FormatableProperties.java

java.lang.Object
  extended byjava.util.Dictionary
      extended byjava.util.Hashtable
          extended byjava.util.Properties
              extended byorg.apache.derby.iapi.services.io.FormatableProperties
All Implemented Interfaces:
java.lang.Cloneable, java.io.Externalizable, Formatable, java.util.Map, java.io.Serializable, TypedFormat

public class FormatableProperties
extends java.util.Properties
implements Formatable

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


Nested Class Summary
 
Nested classes inherited from class java.util.Hashtable
 
Nested classes inherited from class java.util.Map
java.util.Map.Entry
 
Field Summary
 
Fields inherited from class java.util.Properties
defaults
 
Fields inherited from class java.util.Hashtable
 
Constructor Summary
FormatableProperties()
          Niladic constructor for formatable
FormatableProperties(java.util.Properties defaults)
          Creates an empty property list with the specified defaults.
 
Method Summary
 void clearDefaults()
          Clear the defaults from this Properties set.
 int getTypeFormatId()
          Get the formatID which corresponds to this class.
 void readExternal(ArrayInputStream in)
           
 void readExternal(java.io.ObjectInput in)
          Read the properties from a stream of stored objects.
 void writeExternal(java.io.ObjectOutput out)
          Write the properties out.
 
Methods inherited from class java.util.Properties
getProperty, getProperty, list, list, load, loadFromXML, propertyNames, save, setProperty, store, storeToXML, storeToXML
 
Methods inherited from class java.util.Hashtable
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FormatableProperties

public FormatableProperties()
Niladic constructor for formatable


FormatableProperties

public FormatableProperties(java.util.Properties defaults)
Creates an empty property list with the specified defaults.

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.IOException
Write the properties 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
Read the properties from a stream of stored objects.

Specified by:
readExternal in interface java.io.Externalizable

readExternal

public void readExternal(ArrayInputStream in)
                  throws java.io.IOException

getTypeFormatId

public int getTypeFormatId()
Get the formatID which corresponds to this class.

Specified by:
getTypeFormatId in interface TypedFormat