org.openstreetmap.osmosis.core.store
Class DynamicStoreClassRegister

java.lang.Object
  extended by org.openstreetmap.osmosis.core.store.BaseStoreClassRegister
      extended by org.openstreetmap.osmosis.core.store.DynamicStoreClassRegister
All Implemented Interfaces:
StoreClassRegister

public class DynamicStoreClassRegister
extends BaseStoreClassRegister

This store class register dynamically allocates identifiers for classes as they are encountered while writing to the store. These identifiers are maintained in memory and used while reading back from the store.


Constructor Summary
DynamicStoreClassRegister()
          Creates a new instance.
 
Method Summary
 void storeIdentifierForClass(StoreWriter storeWriter, java.lang.Class<?> clazz)
          Stores the unique identifier for the specified class to the store.
 
Methods inherited from class org.openstreetmap.osmosis.core.store.BaseStoreClassRegister
getClassFromIdentifier, isClassRecognized, registerClass
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DynamicStoreClassRegister

public DynamicStoreClassRegister()
Creates a new instance.

Method Detail

storeIdentifierForClass

public void storeIdentifierForClass(StoreWriter storeWriter,
                                    java.lang.Class<?> clazz)
Stores the unique identifier for the specified class to the store.

Specified by:
storeIdentifierForClass in interface StoreClassRegister
Overrides:
storeIdentifierForClass in class BaseStoreClassRegister
Parameters:
storeWriter - The store to write class identification data to.
clazz - The class for which an identifier is required.