org.jboss.serial.objectmetamodel
Class FieldsContainer

java.lang.Object
  extended byorg.jboss.serial.objectmetamodel.FieldsContainer

public class FieldsContainer
extends java.lang.Object

$Id: FieldsContainer.java,v 1.5 2005/11/03 20:48:57 csuconic Exp $

Author:
Clebert Suconic

Nested Class Summary
static class FieldsContainer.EntryImpl
           
 
Constructor Summary
FieldsContainer(ClassMetaData metaData)
           
 
Method Summary
 java.io.ObjectInputStream.GetField createGet()
           
 java.io.ObjectOutputStream.PutField createPut()
           
static java.util.Map.Entry readField(java.io.ObjectInput input)
           
 void readMyself(java.io.ObjectInput input)
           
static int readNumberOfFields(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.
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)
           
static void writeNumberOfFields(java.io.ObjectOutput out, int fields)
          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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FieldsContainer

public FieldsContainer(ClassMetaData metaData)
Method Detail

writeNumberOfFields

public static void writeNumberOfFields(java.io.ObjectOutput out,
                                       int fields)
                                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

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

readNumberOfFields

public static int readNumberOfFields(java.io.ObjectInput input)
                              throws java.io.IOException
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

readField

public static java.util.Map.Entry readField(java.io.ObjectInput input)
                                     throws java.io.IOException,
                                            java.lang.ClassNotFoundException
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.