public class DebugTee extends Object implements DebugBuilder
| Constructor and Description |
|---|
DebugTee(DebugBuilder builder1,
DebugBuilder builder2) |
| Modifier and Type | Method and Description |
|---|---|
void |
append(int number,
int width)
Append the specified number within a space (number of spaces) specified
by the width.
|
void |
append(Object object)
Append the specified object by calling it
toString() method. |
void |
append(Object object,
int width)
Append the specified object by calling its
toString()
method, placing it within specified space. |
void |
appendAsHexln(String label,
long value)
Append the specified number, displayed in hexadecimal notation, with the
specified label, then start a new line.
|
void |
appendException(Throwable e)
Append the message and trace of the specified exception.
|
void |
appendln()
Start a new line.
|
void |
appendln(String text)
Append the specified text, then start a new line.
|
void |
appendln(String label,
boolean value)
Append the specified value, displayed as true or false, with the
specified label, then start a new line.
|
void |
appendln(String label,
double value)
Append the specified number with the specified label, then start a new
line.
|
void |
appendln(String label,
long value)
Append the specified number, displayed in hexadecimal notation, with the
specified label, then start a new line.
|
void |
appendln(String label,
Object object)
Append the specified object with the specified label, then start a new
line.
|
void |
appendln(String label,
Object[] objects)
Append the elements of the specified array with the specified label.
|
void |
appendPreformatted(String text)
Append the specified text without any formatting.
|
void |
appendPreformatted(String label,
String text)
Append the specified preformatted text with the specified label, then
start a new line.
|
void |
appendTitle(String title)
Append the specified title, then start a new line.
|
void |
blankLine()
Append a blank line only if there are existing lines and the previous
line is not blank.
|
void |
close() |
void |
concat(DebugBuilder debug)
Concatenate the contents of the specified debug builder to the current
builder.
|
void |
endSection() |
void |
indent()
Increase indent used when appending.
|
void |
startSection(String title) |
void |
unindent()
Decrease indent used when appending.
|
public DebugTee(DebugBuilder builder1, DebugBuilder builder2)
public void concat(DebugBuilder debug)
DebugBuilderconcat in interface DebugBuilderpublic void append(int number, int width)
DebugBuilderappend in interface DebugBuilderpublic void append(Object object)
DebugBuildertoString() method.append in interface DebugBuilderpublic void append(Object object, int width)
DebugBuildertoString()
method, placing it within specified space.append in interface DebugBuilderpublic void appendAsHexln(String label, long value)
DebugBuilderappendAsHexln in interface DebugBuilderpublic void appendException(Throwable e)
DebugBuilderappendException in interface DebugBuilderpublic void appendln()
DebugBuilderappendln in interface DebugBuilderDebugBuilder.blankLine()public void appendPreformatted(String text)
DebugBuilderappendPreformatted in interface DebugBuilderpublic void appendln(String text)
DebugBuilderappendln in interface DebugBuilderpublic void appendln(String label, boolean value)
DebugBuilderappendln in interface DebugBuilderpublic void appendln(String label, double value)
DebugBuilderappendln in interface DebugBuilderpublic void appendln(String label, long value)
DebugBuilderappendln in interface DebugBuilderpublic void appendPreformatted(String label, String text)
DebugBuilderappendPreformatted in interface DebugBuilderpublic void appendln(String label, Object object)
DebugBuilderappendln in interface DebugBuilderpublic void appendln(String label, Object[] objects)
DebugBuilderappendln in interface DebugBuilderpublic void appendTitle(String title)
DebugBuilderappendTitle in interface DebugBuilderpublic void startSection(String title)
startSection in interface DebugBuilderpublic void endSection()
endSection in interface DebugBuilderpublic void blankLine()
DebugBuilderblankLine in interface DebugBuilderpublic void indent()
DebugBuilderindent in interface DebugBuilderpublic void unindent()
DebugBuilderunindent in interface DebugBuilderpublic void close()
close in interface DebugBuilderCopyright © 2010–2014 The Apache Software Foundation. All rights reserved.