Package net.sf.jasperreports.engine.fill
Class MessageFormatWrapper
java.lang.Object
net.sf.jasperreports.engine.fill.MessageFormatWrapper
MessageFormat does not work with classes of the java.time package such as LocalDate This is by design and won't be fixed:
https://bugs.openjdk.org/browse/JDK-8016743
This class wraps a MessageFormat and converts classes of the java.time package into Date objects- Author:
- Guillaume Toison
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
MessageFormatWrapper
public MessageFormatWrapper()
-
-
Method Details
-
format
- Parameters:
pattern- The message pattern, for instance "since {0, date, dd-MM-yy}"locale- The locale, must be non-nullarguments- the message parameters- Returns:
- the constructed message
- See Also:
-