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(); } }
public void setWriters(PrintWriter pw) { pw.getClass(); noticeWriter = warnWriter = errWriter = pw; }