import java.io.*; import java.util.*; import java.net.*; import java.awt.*; public class PictureKeeper { static boolean[] doneLines; static Dimension bounds; static Scanline picture[]; static int numberDone; public PictureKeeper(Dimension boundsin) { bounds = boundsin; picture = new Scanline[bounds.height]; doneLines = new boolean[bounds.height]; for (int i=0; i > > Wrote line " + y + ", number " + ++numberDone + " of " + bounds.height); } public synchronized void writeToFile(String outfilename) { try { ObjectOutputStream fileout = new ObjectOutputStream( new FileOutputStream(outfilename)); for (int i=0; i