public class WarningObject extends Object
Modifier and Type | Field and Description |
---|---|
protected PrintStream |
out
The warning stream.
|
Constructor and Description |
---|
WarningObject() |
protected PrintStream out
public void print(Object source, String bundleName, String key, Object[] arg)
source
- is the object that is the source of the warning.
It source
is a String then it is assumed to be
name of the class raising 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
,
MessageFormat
public void setOut(PrintStream out)
System.err
.out
- is the new warning output stream.
It may be null, in which case warnings
are not printed.Copyright © 1970-2015 Rogue Wave Software
Built October 13 2015.