org.jboss.serial.objectmetamodel
Class FieldsContainer

java.lang.Object
  extended by org.jboss.serial.objectmetamodel.FieldsContainer

public class FieldsContainer
extends java.lang.Object

$Id: FieldsContainer.java,v 1.9 2006/04/18 18:42:42 csuconic Exp $

Author:
Clebert Suconic

Nested Class Summary
static class FieldsContainer.EntryImpl
           
 
Constructor Summary
FieldsContainer(ClassMetaDataSlot metaData)
           
 
Method Summary
 java.io.ObjectInputStream.GetField createGet()
           
 java.io.ObjectOutputStream.PutField createPut()
           
static java.util.Map.Entry readField(java.io.ObjectInput input)
          both {@link org.jboss.serial.persister.RegularObjectPersister) and readMyself need to produce the same binary compatible output while it's not required by RegularObjectPersister to create an intermediate HashMap to read its fields.
 void readMyself(java.io.ObjectInput input)
           
static void writeField(java.io.ObjectOutput out, java.util.Map.Entry entry)
          both {@link org.jboss.serial.persister.RegularObjectPersister) and writeMyself need to produce the same binary compatible output while it's not required by RegularObjectPersister to create an intermediate HashMap to read its fields.
 void writeMyself(java.io.ObjectOutput output)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FieldsContainer

public FieldsContainer(ClassMetaDataSlot metaData)
Method Detail

writeField

public static void writeField(java.io.ObjectOutput out,
                              java.util.Map.Entry entry)
                       throws java.io.IOException
both {@link org.jboss.serial.persister.RegularObjectPersister) and writeMyself need to produce the same binary compatible output while it's not required by RegularObjectPersister to create an intermediate HashMap to read its fields. Becuase of that we have opted in keep static methods on FieldsContainer that will expose low level persistent operations

Throws:
java.io.IOException

writeMyself

public void writeMyself(java.io.ObjectOutput output)
                 throws java.io.IOException
Throws:
java.io.IOException

readField

public static java.util.Map.Entry readField(java.io.ObjectInput input)
                                     throws java.io.IOException,
                                            java.lang.ClassNotFoundException
both {@link org.jboss.serial.persister.RegularObjectPersister) and readMyself need to produce the same binary compatible output while it's not required by RegularObjectPersister to create an intermediate HashMap to read its fields. Becuase of that we have opted in keep static methods on FieldsContainer that will expose low level persistent operations

Throws:
java.io.IOException
java.lang.ClassNotFoundException

readMyself

public void readMyself(java.io.ObjectInput input)
                throws java.io.IOException,
                       java.lang.ClassNotFoundException
Throws:
java.io.IOException
java.lang.ClassNotFoundException

createGet

public java.io.ObjectInputStream.GetField createGet()

createPut

public java.io.ObjectOutputStream.PutField createPut()


JBoss Serialization, a new approach to java-serialization.