Exemple #1
0
 public void setWriter(WriterKind kind, PrintWriter pw) {
   pw.getClass();
   switch (kind) {
     case NOTICE:
       noticeWriter = pw;
       break;
     case WARNING:
       warnWriter = pw;
       break;
     case ERROR:
       errWriter = pw;
       break;
     default:
       throw new IllegalArgumentException();
   }
 }
Exemple #2
0
 public void setWriters(PrintWriter pw) {
   pw.getClass();
   noticeWriter = warnWriter = errWriter = pw;
 }