|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.openstreetmap.osmosis.core.store.BaseStoreClassRegister
public class BaseStoreClassRegister
Provides common functionality to store class register implementations.
| Constructor Summary | |
|---|---|
BaseStoreClassRegister()
Creates a new instance. |
|
| Method Summary | |
|---|---|
java.lang.Class<?> |
getClassFromIdentifier(StoreReader storeReader)
Returns the class associated with the unique identifier in the store. |
protected boolean |
isClassRecognized(java.lang.Class<?> clazz)
Indicates if the class is recognized by the current register. |
protected void |
registerClass(java.lang.Class<?> clazz,
byte id)
Registers the class with the specified id. |
void |
storeIdentifierForClass(StoreWriter storeWriter,
java.lang.Class<?> clazz)
Stores the unique identifier for the specified class to the store. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BaseStoreClassRegister()
| Method Detail |
|---|
protected boolean isClassRecognized(java.lang.Class<?> clazz)
clazz - The class to be checked.
protected void registerClass(java.lang.Class<?> clazz,
byte id)
clazz - The class to be registered.id - The unique identifier for the class.
public void storeIdentifierForClass(StoreWriter storeWriter,
java.lang.Class<?> clazz)
storeIdentifierForClass in interface StoreClassRegisterstoreWriter - The store to write class identification data to.clazz - The class for which an identifier is required.public java.lang.Class<?> getClassFromIdentifier(StoreReader storeReader)
getClassFromIdentifier in interface StoreClassRegisterstoreReader - The store to read class identification information from.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||