code: public void readState(DataInputStream stream) throws IOException
          {
          int len = mt.length;
          for(int x=0;x<len;x++) mt[x] = stream.readInt();
          
          len = mag01.length;
          for(int x=0;x<len;x++) mag01[x] = stream.readInt();
          
          mti = stream.readInt();
          __nextNextGaussian = stream.readDouble();
          __haveNextNextGaussian = stream.readBoolean();
          }
docs: Reads the entire state of the MersenneTwister RNG from the stream
  @param stream
  @throws IOException