public static Object deserialize(InputStream in){
  Class<?> cls;
  Class<?>[] paramTypes;
  Constructor<?> constr;
  Object[] arglist;
  Object obj;
  Object result;
  result=null;
  try {
    cls=Class.forName(CLASS_PYTHONOBJECTINPUTSTREAM);
    paramTypes=new Class[]{InputStream.class};
    constr=cls.getConstructor(paramTypes);
    arglist=new Object[]{in};
    obj=constr.newInstance(arglist);
    result=invoke(obj,"readObject",new Class[]{},new Object[]{});
  }
 catch (  Exception e) {
    e.printStackTrace();
  }
  return result;
}

public static Object deserialize ( InputStream in ) { Class < ? > cls ; Class < ? > [ ] paramTypes ; Constructor < ? > constr ; Object [ ] arglist ; Object obj ; Object result ; result = null ; try { cls = Class . forName ( CLASS_PYTHONOBJECTINPUTSTREAM ) ; paramTypes = new Class [ ] { InputStream . class } ; constr = cls . getConstructor ( paramTypes ) ; arglist = new Object [ ] { in } ; obj = constr . newInstance ( arglist ) ; result = invoke ( obj , "readObject" , new Class [ ] { } , new Object [ ] { } ) ; } catch ( Exception e ) { e . printStackTrace ( ) ; } return result ; }
deserializes the python object from the stream
