Package com.imsl
Class WarningObject
java.lang.Object
com.imsl.WarningObject
Handle warning messages.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
out
The warning stream. Its default value is System.err.
-
-
Constructor Details
-
WarningObject
public WarningObject()
-
-
Method Details
-
print
Issue a warning message. Warning messages are stored as MessageFormat patterns in a ResourceBundle. This method retrieves the pattern from the bundle, formats the message with the supplied arguments, and prints the message to the warning stream.- Parameters:
source- is the object that is the source of the warning. Itsourceis 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.- See Also:
-
setOut
Reassigns the output stream. The default warning stream isSystem.err.- Parameters:
out- is the new warning output stream. It may be null, in which case warnings are not printed.
-