Main Page   Packages   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

Reader.java

00001 package gov.nasa.arc.ase.jpf.jvm;
00002 
00003 import gov.nasa.arc.ase.jpf.*;
00004 import gov.nasa.arc.ase.util.Debug;
00005 import java.io.*;
00006 import java.util.*;
00007 
00008 public class Reader{
00009   private static BufferedReader in = 
00010     new BufferedReader(new InputStreamReader(System.in));
00011 
00012   public static boolean interrupt(){
00013     return read();
00014   }  
00015   public static void process(List lines){
00016     /* Process the read lines - opdate options etc. */
00017   }  
00018   public static boolean read() {
00019     try {
00020       if (in.ready()){
00021         List lines = new ArrayList();
00022         String line;
00023         while (in.ready()){
00024           line = in.readLine();
00025           lines.add(line);
00026         };
00027         process(lines);
00028         return true;
00029       }
00030     }catch(IOException e){
00031       e.printStackTrace();
00032       System.exit(1);
00033     }
00034     return false;
00035   }  
00036 }

Generated at Thu Feb 7 06:53:41 2002 for Bandera by doxygen1.2.10 written by Dimitri van Heesch, © 1997-2001