/** * Prints an Object and then terminates the line. This method calls * at first String.valueOf(x) to get the printed object's string value, * then behaves as * though it invokes <code>{@link #print(String)}</code> and then * <code>{@link #println()}</code>. * * @param message The <code>Object</code> to be printed. */ public void println(String message) { this.addLine(message); }
/** * Prints an Object and then terminates the line. This method calls * at first String.valueOf(x) to get the printed object's string value, * then behaves as * though it invokes <code>{@link #print(String)}</code> and then * <code>{@link #println()}</code>. * * @param message The <code>Object</code> to be printed. */ public void println(String message) { this.addLine(message); }
/** * Prints an Object and then terminates the line. This method calls * at first String.valueOf(x) to get the printed object's string value, * then behaves as * though it invokes <code>{@link #print(String)}</code> and then * <code>{@link #println()}</code>. * * @param message The <code>Object</code> to be printed. */ public void println(String message) { this.addLine(message); }
public void println() { this.addLine(); }
public PrintWriter printf(String format, Object ... args) { this.addLine(String.format(format, args)); return this; }
public PrintWriter printf(String format, Object ... args) { this.addLine(String.format(format, args)); return this; }
public PrintWriter printf(Locale l, String format, Object ... args) { this.addLine(String.format(l, format, args)); return this; }
public PrintWriter printf(Locale l, String format, Object ... args) { this.addLine(String.format(l, format, args)); return this; }
public PrintWriter printf(Locale l, String format, Object ... args) { this.addLine(String.format(l, format, args)); return this; }
public PrintWriter printf(String format, Object ... args) { this.addLine(String.format(format, args)); return this; }
/** * Prints a String and then terminates the line. This method behaves as * though it invokes <code>{@link #print(String)}</code> and then * <code>{@link #println()}</code>. * * @param object the <code>String</code> value to be printed */ public void println(Object object) { this.addLine(Str.toString(object)); }
/** * Prints a String and then terminates the line. This method behaves as * though it invokes <code>{@link #print(String)}</code> and then * <code>{@link #println()}</code>. * * @param object the <code>String</code> value to be printed */ public void println(Object object) { this.addLine(Str.toString(object)); }
/** * Prints a String and then terminates the line. This method behaves as * though it invokes <code>{@link #print(String)}</code> and then * <code>{@link #println()}</code>. * * @param object the <code>String</code> value to be printed */ public void println(Object object) { this.addLine(Str.toString(object)); }
public void println(long x) { this.addLong(x).addLine(); }
public void println(float x) { add(x).addLine(); }
public void println(float x) { add(x).addLine(); }
public void println(long x) { this.addLong(x).addLine(); }
public static String toString( Exception ex ) { CharBuf buffer = CharBuf.create( 255 ); buffer.addLine( ex.getLocalizedMessage() ); final StackTraceElement[] stackTrace = ex.getStackTrace(); for ( StackTraceElement element : stackTrace ) { buffer.add( element.getClassName() ); sputs( " ", buffer, "class", element.getClassName(), "method", element.getMethodName(), "line", element.getLineNumber() ); } return buffer.toString(); }
public static String toString( Exception ex ) { CharBuf buffer = CharBuf.create( 255 ); buffer.addLine( ex.getLocalizedMessage() ); final StackTraceElement[] stackTrace = ex.getStackTrace(); for ( StackTraceElement element : stackTrace ) { buffer.add( element.getClassName() ); sputs( " ", buffer, "class", element.getClassName(), "method", element.getMethodName(), "line", element.getLineNumber() ); } return buffer.toString(); }
public static String toString( Exception ex ) { CharBuf buffer = CharBuf.create( 255 ); buffer.addLine( ex.getLocalizedMessage() ); final StackTraceElement[] stackTrace = ex.getStackTrace(); for ( StackTraceElement element : stackTrace ) { buffer.add( element.getClassName() ); sputs( " ", buffer, "class", element.getClassName(), "method", element.getMethodName(), "line", element.getLineNumber() ); } return buffer.toString(); }