public Row(DataInput is) throws IOException {
  for (int i=is.readInt(); i > 0; i--) {
    char ch=is.readChar();
    Cell c=new Cell();
    c.cmd=is.readInt();
    c.cnt=is.readInt();
    c.ref=is.readInt();
    c.skip=is.readInt();
    cells.put(ch,c);
  }
}

public Row ( DataInput is ) throws IOException { for ( int i = is . readInt ( ) ; i > 0 ; i -- ) { char ch = is . readChar ( ) ; Cell c = new Cell ( ) ; c . cmd = is . readInt ( ) ; c . cnt = is . readInt ( ) ; c . ref = is . readInt ( ) ; c . skip = is . readInt ( ) ; cells . put ( ch , c ) ; } }
construct a row object from input carried in via the given input stream .
