public class Printer
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_INCREMENT |
Constructor and Description |
---|
Printer(java.io.PrintStream ps) |
Printer(java.io.PrintStream ps,
int increment,
char padChar) |
Modifier and Type | Method and Description |
---|---|
Printer |
in() |
int |
indent() |
Printer |
nl() |
Printer |
out() |
Printer |
p(java.lang.Object... args) |
Printer |
p(java.lang.Object obj) |
Printer |
p(java.lang.String str) |
Printer |
printBuffer(byte[] buffer) |
Printer |
rj(int size)
Right-Justify the next call to p so that the total number of characters
is at least size.
|
public static final int DEFAULT_INCREMENT
public Printer(java.io.PrintStream ps)
public Printer(java.io.PrintStream ps, int increment, char padChar)
public Printer rj(int size)
public Printer p(java.lang.String str)
public Printer p(java.lang.Object... args)
public Printer p(java.lang.Object obj)
public Printer in()
public Printer out()
public int indent()
public Printer nl()
public Printer printBuffer(byte[] buffer)