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 //#ifdef JDK11
00007 
00008 
00009 //#else JDK11
00010 import java.util.*;
00011 //#endif JDK11
00012 
00013 public class Reader{
00014   private static BufferedReader in = 
00015     new BufferedReader(new InputStreamReader(System.in));
00016 
00017   public static boolean interrupt(){
00018     return read();
00019   }  
00020   public static void process(List lines){
00021     /* Process the read lines - opdate options etc. */
00022   }  
00023   public static boolean read() {
00024     try {
00025       if (in.ready()){
00026         List lines = new ArrayList();
00027         String line;
00028         while (in.ready()){
00029           line = in.readLine();
00030           lines.add(line);
00031         };
00032         process(lines);
00033         return true;
00034       }
00035     }catch(IOException e){
00036       e.printStackTrace();
00037       throw new JPFErrorException("");//System.exit(1);
00038     }
00039     return false;
00040   }  
00041 }

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