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, run
public ProxyPrinter()
AbstractPrinter.getContextPrinter()
as the delegate.ProxyPrinter
public ProxyPrinter(Printer delegate)
ProxyPrinter
public void error(@Nullable String message)
Printer
public void error(@Nullable String message, @Nullable Throwable t)
Printer
error
in interface Printer
error
in class AbstractPrinter
public void error(String pattern, Object... arguments)
Printer
error
in interface Printer
error
in class AbstractPrinter
Format.format(Object)
public void error(String pattern, @Nullable Throwable t, Object... arguments)
Printer
error
in interface Printer
error
in class AbstractPrinter
Format.format(Object)
public void warn(@Nullable String message)
Printer
public void warn(String pattern, Object... arguments)
Printer
warn
in interface Printer
warn
in class AbstractPrinter
Format.format(Object)
public void info(@Nullable String message)
Printer
public void info(String pattern, Object... arguments)
Printer
info
in interface Printer
info
in class AbstractPrinter
Format.format(Object)
public void verbose(@Nullable String message)
Printer
public void verbose(String pattern, Object... arguments)
Printer
verbose
in interface Printer
verbose
in class AbstractPrinter
Format.format(Object)
public void debug(@Nullable String message)
Printer
public void debug(String pattern, Object... arguments)
Printer
debug
in interface Printer
debug
in class AbstractPrinter
Format.format(Object)
Copyright © 2018 Arno Unkrig. All rights reserved.