| Constructor and Description |
|---|
Warning() |
| Modifier and Type | Method and Description |
|---|---|
static WarningObject |
getWarning()
Gets the WarningObject.
|
static void |
print(Object source,
String bundleName,
String key,
Object[] arg)
Issue a warning message.
|
static void |
setOut(PrintStream out)
Reassigns the output stream.
|
static void |
setWarning(WarningObject warningObject)
Sets a new WarningObject.
|
public static WarningObject getWarning()
public static void print(Object source, String bundleName, String key, Object[] arg)
source - is the object that is the source of the warning.bundleName - is the prefix of the ResourceBundle name. The
actual name is formed by appending ".ErrorMessages".key - identifies the warning message in the bundle.arg - are the arguments used to format the message.ResourceBundle,
MessageFormatpublic static void setOut(PrintStream out)
System.err.out - is the new warning output stream.
It may be null, in which case warnings
are not printed.public static void setWarning(WarningObject warningObject)
warningObject - is the new WarningObject. It may be null,
in which case error messages will be ignored.Copyright © 1970-2015 Rogue Wave Software
Built June 18 2015.