public Object readData(PdxReader reader,Class<?> clazz){
  Object result=null;
  if (isRelevant(clazz)) {
    AutoClassInfo ci=getClassInfo(clazz);
    result=ci.newInstance(clazz);
    InternalPdxReader ri=(InternalPdxReader)reader;
    PdxType pt=ri.getPdxType();
    if (ci.matchesPdxType(pt)) {
      pt.setAutoInfo(ci);
      ri.orderedDeserialize(result,ci);
    }
 else {
      for (      PdxFieldWrapper f : ci.getFields()) {
        f.deserialize(ri,result);
      }
    }
  }
  return result;
}

public Object readData ( PdxReader reader , Class < ? > clazz ) { Object result = null ; if ( isRelevant ( clazz ) ) { AutoClassInfo ci = getClassInfo ( clazz ) ; result = ci . newInstance ( clazz ) ; InternalPdxReader ri = ( InternalPdxReader ) reader ; PdxType pt = ri . getPdxType ( ) ; if ( ci . matchesPdxType ( pt ) ) { pt . setAutoInfo ( ci ) ; ri . orderedDeserialize ( result , ci ) ; } else { for ( PdxFieldWrapper f : ci . getFields ( ) ) { f . deserialize ( ri , result ) ; } } } return result ; }
using the given pdxreader , recreate the given object .
