code: private void readObject(ObjectInputStream stream)
          throws IOException, ClassNotFoundException
      {
          stream.defaultReadObject();
  
          // set transient fields
          setOut( System.out );
          setErr( System.err );
      }
docs: De-serialization setup.
  Default out and err streams to stdout, stderr if they are null.