public class ProxyPrinter extends AbstractPrinter
AbstractPrinter that farwards all method calls to a delegate printer. Can serve as a base
class when you want to override only a few of AbstractPrinter's methods.AbstractPrinter.Level| Constructor and Description |
|---|
ProxyPrinter()
Uses the
AbstractPrinter.getContextPrinter() as the delegate. |
ProxyPrinter(Printer delegate) |
| Modifier and Type | Method and Description |
|---|---|
void |
debug(String message)
Prints a debug message.
|
void |
debug(String pattern,
Object... arguments)
Prints a debug message.
|
void |
error(String message)
Prints an error condition.
|
void |
error(String pattern,
Object... arguments)
Prints an error condition.
|
void |
error(String message,
Throwable t)
Prints an error condition.
|
void |
error(String pattern,
Throwable t,
Object... arguments)
Prints an error condition.
|
void |
info(String message)
Prints an informative ("normal") message.
|
void |
info(String pattern,
Object... arguments)
Prints an informative ("normal") message.
|
void |
verbose(String message)
Prints a verbose message.
|
void |
verbose(String pattern,
Object... arguments)
Prints a verbose message.
|
void |
warn(String message)
Prints a warning condition.
|
void |
warn(String pattern,
Object... arguments)
Prints a warning condition.
|
discard, discard, discardDebug, discardError, discardInfo, discardVerbose, discardWarn, fromPrinter, getContextPrinter, redirect, redirect, redirect, redirect, redirectDebug, redirectDebug, redirectError, redirectError, redirectInfo, redirectInfo, redirectVerbose, redirectVerbose, redirectWarn, redirectWarn, run, runpublic ProxyPrinter()
AbstractPrinter.getContextPrinter() as the delegate.ProxyPrinterpublic ProxyPrinter(Printer delegate)
ProxyPrinterpublic void error(@Nullable
String message)
Printerpublic void error(@Nullable
String message,
@Nullable
Throwable t)
Printererror in interface Printererror in class AbstractPrinterpublic void error(String pattern, Object... arguments)
Printererror in interface Printererror in class AbstractPrinterFormat.format(Object)public void error(String pattern, @Nullable Throwable t, Object... arguments)
Printererror in interface Printererror in class AbstractPrinterFormat.format(Object)public void warn(@Nullable
String message)
Printerpublic void warn(String pattern, Object... arguments)
Printerwarn in interface Printerwarn in class AbstractPrinterFormat.format(Object)public void info(@Nullable
String message)
Printerpublic void info(String pattern, Object... arguments)
Printerinfo in interface Printerinfo in class AbstractPrinterFormat.format(Object)public void verbose(@Nullable
String message)
Printerpublic void verbose(String pattern, Object... arguments)
Printerverbose in interface Printerverbose in class AbstractPrinterFormat.format(Object)public void debug(@Nullable
String message)
Printerpublic void debug(String pattern, Object... arguments)
Printerdebug in interface Printerdebug in class AbstractPrinterFormat.format(Object)Copyright © 2018 Arno Unkrig. All rights reserved.