org.openstreetmap.osmosis.core.store
Interface Storeable

All Known Subinterfaces:
IndexElement<K>, TagCollection
All Known Implementing Classes:
Bound, Bound, BoundContainer, BoundContainer, ChangeContainer, ChangeContainer, CommonEntityData, DBEntityTag, DbFeature, DbFeatureHistory, DbOrderedFeature, DBRelationMember, DBWayNode, Entity, Entity, EntityBuilder, EntityContainer, EntityContainer, EntityHistory, EntityHistory, IntegerLongIndexElement, LongLongIndexElement, Node, Node, NodeBuilder, NodeContainer, NodeContainer, OsmUser, OsmUser, Relation, Relation, RelationBuilder, RelationContainer, RelationContainer, RelationMember, RelationMember, ReplicationState, Tag, Tag, TagCollectionImpl, UnmodifiableTagCollection, Way, Way, WayBuilder, WayContainer, WayContainer, WayNode, WayNode

public interface Storeable

This interface defines the methods supporting custom serialisation. This custom serialisation provides performance improvements over default java serialisation at the expense of having to be supported explicitly by classes.

Author:
Brett Henderson

Method Summary
 void store(StoreWriter writer, StoreClassRegister storeClassRegister)
          Stores all state to the specified store writer.
 

Method Detail

store

void store(StoreWriter writer,
           StoreClassRegister storeClassRegister)
Stores all state to the specified store writer.

Parameters:
writer - The writer that persists data to an underlying store.
storeClassRegister - Maintains the mapping between classes and their identifiers within the store.