KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > hotsax > html > sax > Utility


1 package hotsax.html.sax;
2
3 class Utility {
4   
5   private static final String JavaDoc errorMsg[] = {
6     "Error: Unmatched end-of-comment punctuation.",
7     "Error: Unmatched start-of-comment punctuation.",
8     "Error: Unclosed string.",
9     "Error: Illegal character."
10     };
11   
12   public static final int E_ENDCOMMENT = 0;
13   public static final int E_STARTCOMMENT = 1;
14   public static final int E_UNCLOSEDSTR = 2;
15   public static final int E_UNMATCHED = 3;
16
17   public static void error(int code) {
18       System.out.println(errorMsg[code]);
19   }
20 }
21
22
Popular Tags