public void Load(Filer type) { this.x = type.rdDouble(1); this.y = type.rdDouble(2); this.r = type.rdInt(3); this.name = type.rdString(4); }
ArrayList loadFile(Filer filer) { Program pr = new Program(); ArrayList arr = new ArrayList(); while (filer.eof()) { int header = filer.rdInt(0); Shape s = pr.ChoiseType(header); s.Load(filer); arr.Add(s); } return(arr); }