We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpPrograms › Visualizing Data Help
Page Index Toggle Pages: 1
Visualizing Data Help (Read 238 times)
Visualizing Data Help
Aug 6th, 2008, 2:28pm
 
I am new to processing and enjoying every bit.  I do need some assistance if anyone can help.  I have been following the examples in the book and am now at the "scatter plots" section. pg.145 - pg.1181.

everything works except the "slurper." I believe I typed it all correctly in, but am getting an error:

"no Method named "parseInfo"..." and offers an alternative.  I am missing something small or just don't get it, but could use some help.
GREATLY APPRECIATED!

Below is my code for the slurper.

---------------------------------------
class Slurper implements Runnable {
 
 Slurper() {
   Thread thread = new Thread(this);
   thread.start();
 }
 
 public void run() {
   try {
     BufferedReader reader = createReader("zips.gz");
     
     //first get the info line
     String line = reader.readLine();
     parseInfo(line);
     
     places = new Place[totalCount];
     
     //parse each of the remaining lines
     while ((line = reader.readLine()) != null) {
       places[placeCount] = parsePlace(line);
       placeCount++;
     }
   } catch (IOException e) {
     e.printStackTrace();
   }
 }
}

Page Index Toggle Pages: 1