public final class PrintContainer extends Object
PrintLN
interface. They are used by our Throwable
to print stack
traces; it lets one use a single class to operate on PrintWriter
and PrintStream
output streams and for the VM.sysWrite(org.jikesrvm.classloader.Atom)
output method.
We use it so we can print stack traces without having to provide multiple versions of each method, one for each kind of output stream.
Modifier and Type | Class and Description |
---|---|
private static class |
PrintContainer.WithPrintStream
Print via PrintStream
|
private static class |
PrintContainer.WithPrintWriter
Print via PrintWriter
|
private static class |
PrintContainer.WithSysWrite
This (nested) class does printing via
VM.sysWrite(org.jikesrvm.classloader.Atom) |
Modifier and Type | Field and Description |
---|---|
static PrintLN |
readyPrinter |
Modifier | Constructor and Description |
---|---|
private |
PrintContainer()
Can not be instantiated.
|
Modifier and Type | Method and Description |
---|---|
static PrintLN |
get(PrintStream out) |
static PrintLN |
get(PrintWriter out) |
public static final PrintLN readyPrinter
private PrintContainer()
public static PrintLN get(PrintStream out)
public static PrintLN get(PrintWriter out)