Back to index

wims  3.65+svn20090927
Debug.java
Go to the documentation of this file.
00001 /*
00002  * This is a class used for print out debug information and can be
00003  * easily turned on/off.
00004  */
00005 package SharpTools;
00006 import java.io.*;
00007 
00008 public class Debug {
00009 
00010     static private boolean debug = false;
00011     
00012     static void setDebug(boolean flag) {
00013        debug = flag;
00014     }
00015     
00016     static boolean isDebug() {
00017        return debug;
00018     }
00019     
00020     static void println(Object s) {
00021        if (debug)
00022            System.out.println(s.toString());
00023     }        
00024 }