|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.openstreetmap.osmosis.core.store.BaseObjectWriter
org.openstreetmap.osmosis.core.store.SingleClassObjectWriter
public class SingleClassObjectWriter
Provides object writing functionality where only a single class type will be stored.
| Constructor Summary | |
|---|---|
protected |
SingleClassObjectWriter(StoreWriter storeWriter,
StoreClassRegister storeClassRegister,
java.lang.Class<?> storeableType)
Creates a new instance. |
| Method Summary | |
|---|---|
protected void |
writeClassIdentifier(StoreWriter sw,
StoreClassRegister scr,
java.lang.Class<?> clazz)
Writes the class identifier to the underlying data stream to allow it to be identified when reading in again. |
| Methods inherited from class org.openstreetmap.osmosis.core.store.BaseObjectWriter |
|---|
writeObject |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected SingleClassObjectWriter(StoreWriter storeWriter,
StoreClassRegister storeClassRegister,
java.lang.Class<?> storeableType)
storeWriter - The store writer to write all serialised data to.storeClassRegister - The register for class to identifier mappings.storeableType - The type of class to be stored.| Method Detail |
|---|
protected void writeClassIdentifier(StoreWriter sw,
StoreClassRegister scr,
java.lang.Class<?> clazz)
writeClassIdentifier in class BaseObjectWritersw - The store writer to write all serialised data to.scr - The register for class to identifier mappings.clazz - The class to be written.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||