Package com.db4o.internal.marshall
Class ClassMarshaller
- java.lang.Object
-
- com.db4o.internal.marshall.ClassMarshaller
-
- Direct Known Subclasses:
ClassMarshaller0
,ClassMarshaller1
,ClassMarshaller2
public abstract class ClassMarshaller extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description MarshallerFamily
_family
-
Constructor Summary
Constructors Constructor Description ClassMarshaller()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
defrag(ClassMetadata classMetadata, LatinStringIO sio, DefragmentContextImpl context, int classIndexID)
protected abstract int
indexIDForWriting(int indexID)
int
marshalledLength(ObjectContainerBase stream, ClassMetadata clazz)
void
read(ObjectContainerBase stream, ClassMetadata clazz, ByteArrayBuffer reader)
protected abstract void
readIndex(ObjectContainerBase stream, ClassMetadata clazz, ByteArrayBuffer reader)
int
readMetaClassID(ByteArrayBuffer reader)
byte[]
readName(Transaction trans, ByteArrayBuffer reader)
RawClassSpec
readSpec(Transaction trans, ByteArrayBuffer reader)
void
write(Transaction trans, ClassMetadata clazz, ByteArrayBuffer writer)
protected void
writeIndex(Transaction trans, ClassMetadata clazz, ByteArrayBuffer writer)
-
-
-
Field Detail
-
_family
public MarshallerFamily _family
-
-
Method Detail
-
readSpec
public RawClassSpec readSpec(Transaction trans, ByteArrayBuffer reader)
-
write
public void write(Transaction trans, ClassMetadata clazz, ByteArrayBuffer writer)
-
writeIndex
protected void writeIndex(Transaction trans, ClassMetadata clazz, ByteArrayBuffer writer)
-
indexIDForWriting
protected abstract int indexIDForWriting(int indexID)
-
readName
public final byte[] readName(Transaction trans, ByteArrayBuffer reader)
-
readMetaClassID
public final int readMetaClassID(ByteArrayBuffer reader)
-
read
public final void read(ObjectContainerBase stream, ClassMetadata clazz, ByteArrayBuffer reader)
-
readIndex
protected abstract void readIndex(ObjectContainerBase stream, ClassMetadata clazz, ByteArrayBuffer reader)
-
marshalledLength
public int marshalledLength(ObjectContainerBase stream, ClassMetadata clazz)
-
defrag
public void defrag(ClassMetadata classMetadata, LatinStringIO sio, DefragmentContextImpl context, int classIndexID)
-
-