|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.jonas.commands.admin.util.PrintUtils
public class PrintUtils
This utility class is responsible of keeping logs coherents. Should be used to display informative messages to the user.
| Constructor Summary | |
|---|---|
PrintUtils()
|
|
| Method Summary | |
|---|---|
static void |
error(String message)
Print an error type message (prefixed with [ERROR]) on the System.err PrintStream. |
static void |
error(String message,
Throwable exception)
Print an error type message (prefixed with [ERROR]) on the System.err PrintStream and then print the cause' message of the given exception. |
static void |
failure(String message)
Print a failure type message (prefixed with [FAILURE]) on the System.err PrintStream. |
static void |
failure(String message,
Throwable exception)
Print a failure type message (prefixed with [FAILURE]) on the System.err PrintStream and then print the cause' message of the given exception. |
static void |
println(String message)
Print a message on the System.out PrintStream. |
static void |
println(String message,
PrintStream stream)
Print a message on the given PrintStream. |
static void |
println(Throwable exception)
Print the given Throwable on the System.err PrintStream. |
static void |
println(Throwable exception,
PrintStream stream)
Print the given Throwable on the given PrintStream. |
static void |
success(String message)
Print a success type message (prefixed with [SUCCESS]) on the System.out PrintStream. |
static void |
warning(String message)
Print a success type message (prefixed with [SUCCESS]) on the System.out PrintStream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PrintUtils()
| Method Detail |
|---|
public static void println(String message,
PrintStream stream)
message - displayed messagestream - PrintStream used to print the messagepublic static void println(String message)
message - displayed message
public static void println(Throwable exception,
PrintStream stream)
exception - displayed exceptionstream - PrintStream used to print the messagepublic static void println(Throwable exception)
exception - displayed exceptionpublic static void warning(String message)
message - displayed messagepublic static void success(String message)
message - displayed messagepublic static void failure(String message)
message - displayed message
public static void failure(String message,
Throwable exception)
message - displayed messageexception - Displayed exceptionpublic static void error(String message)
message - displayed message
public static void error(String message,
Throwable exception)
message - displayed messageexception - Throwable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||