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()
.
out
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) |
print, print, print, print, print, print, print, println, println, println, println, println, println, println
close, flush, write, write
write
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 © 2016. All rights reserved.