protected static void printLevel(StringBuffer out, int level, String indent, String text) { printLevel(out, level, indent); out.append(text); }
protected static void printLevel(OutputStream out, int level, String indent, String text) throws java.io.IOException { OutputStreamWriter w = new OutputStreamWriter(out); printLevel(w, level, indent, text); w.flush(); }
protected static void printLevel(java.io.Writer out, int level, String indent, String text) throws java.io.IOException { StringBuffer outBuf = new StringBuffer(); printLevel(outBuf, level, indent, text); out.write(outBuf.toString()); }
/** * Indent by 2 spaces for every @level. */ protected static void printLevel(java.io.Writer out, int level, String indent) throws java.io.IOException { StringBuffer outBuf = new StringBuffer(); printLevel(outBuf, level, indent); out.write(outBuf.toString()); }