public void readFromStream(DataInputStream dis,int version) throws IOException {
  for (int c=0; c < 2; c++) {
    ArrayList<TimeControlField> tc=new ArrayList<TimeControlField>();
    if (c == 0)     tcW=tc;
 else     tcB=tc;
    int nw=dis.readInt();
    for (int i=0; i < nw; i++) {
      int time=dis.readInt();
      int moves=dis.readInt();
      int inc=dis.readInt();
      tc.add(new TimeControlField(time,moves,inc));
    }
  }
}

public void readFromStream ( DataInputStream dis , int version ) throws IOException { for ( int c = 0 ; c < 2 ; c ++ ) { ArrayList < TimeControlField > tc = new ArrayList < TimeControlField > ( ) ; if ( c == 0 ) tcW = tc ; else tcB = tc ; int nw = dis . readInt ( ) ; for ( int i = 0 ; i < nw ; i ++ ) { int time = dis . readInt ( ) ; int moves = dis . readInt ( ) ; int inc = dis . readInt ( ) ; tc . add ( new TimeControlField ( time , moves , inc ) ) ; } } }
de - serialize from input stream .
