1 3 19 20 package com.sun.org.apache.xml.internal.resolver.helpers; 21 22 34 public class Debug { 35 36 protected int debug = 0; 37 38 39 public Debug() { 40 } 42 43 44 public void setDebug(int newDebug) { 45 debug = newDebug; 46 } 47 48 49 public int getDebug() { 50 return debug; 51 } 52 53 64 public void message(int level, String message) { 65 if (debug >= level) { 66 System.out.println(message); 67 } 68 } 69 70 82 public void message(int level, String message, String spec) { 83 if (debug >= level) { 84 System.out.println(message + ": " + spec); 85 } 86 } 87 88 101 public void message(int level, String message, 102 String spec1, String spec2) { 103 if (debug >= level) { 104 System.out.println(message + ": " + spec1); 105 System.out.println("\t" + spec2); 106 } 107 } 108 } 109 | Popular Tags |