public class StackTracePrintStream extends PrintStream
PrintStream
implementation that implements only a subset of methods that is enough to
be used with Throwable.printStackTrace(PrintStream)
.
Note that all implemented methods marked as final except two methods that are safe to be
overridden by the subclasses: append(String)
newLine()
.
Constructor and Description |
---|
StackTracePrintStream(StringBuilder builder) |
Modifier and Type | Method and Description |
---|---|
protected void |
append(String text)
Appends some text to the output.
|
protected void |
newLine()
Appends a newline to the output.
|
void |
print(Object obj) |
void |
print(String str) |
void |
println() |
void |
println(Object obj) |
void |
println(String str) |
public StackTracePrintStream(StringBuilder builder)
protected void append(String text)
protected void newLine()
public final void print(Object obj)
print
in class PrintStream
public final void println(Object obj)
println
in class PrintStream
public final void print(String str)
print
in class PrintStream
public final void println()
println
in class PrintStream
public final void println(String str)
println
in class PrintStream
Copyright © 2018. All rights reserved.