JMSLTM Numerical Library 4.0

com.imsl
Class WarningObject

java.lang.Object
  extended bycom.imsl.WarningObject

public class WarningObject
extends Object

Handle warning messages.


Field Summary
protected  PrintStream out
          The warning stream.
 
Constructor Summary
WarningObject()
           
 
Method Summary
 void print(Object source, String bundleName, String key, Object[] arg)
          Issue a warning message.
 void setOut(PrintStream out)
          Reassigns the output stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

out

protected PrintStream out
The warning stream. Its default value is System.err.

Constructor Detail

WarningObject

public WarningObject()
Method Detail

print

public void print(Object source,
                  String bundleName,
                  String key,
                  Object[] arg)
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.
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:
ResourceBundle, MessageFormat

setOut

public void setOut(PrintStream out)
Reassigns the output stream. The default warning stream is System.err.

Parameters:
out - is the new warning output stream. It may be null, in which case warnings are not printed.

JMSLTM Numerical Library 4.0

Copyright 1970-2006 Visual Numerics, Inc.
Built June 1 2006.