|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectutil.Output
public final class Output
A few utility functions for terminal output formatting.
| Field Summary | |
|---|---|
static int |
DEFAULT_INDENT
The width of the default indentation. |
| Method Summary | |
|---|---|
static String |
indent(String str)
Indent each line of a string by DEFAULT_INDENT spaces. |
static String |
indent(String str,
int width)
Indent each line of a string by a given number of spaces. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int DEFAULT_INDENT
| Method Detail |
|---|
public static String indent(String str,
int width)
str - The string to indent.width - The width of the indentation.
public static String indent(String str)
DEFAULT_INDENT spaces.
str - The string to indent.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||