Package net.sf.jasperreports.engine.fill
Class MessageFormatWrapper
- java.lang.Object
-
- net.sf.jasperreports.engine.fill.MessageFormatWrapper
-
public class MessageFormatWrapper extends java.lang.ObjectMessageFormatdoes not work with classes of the java.time package such asLocalDateThis is by design and won't be fixed: https://bugs.openjdk.org/browse/JDK-8016743 This class wraps aMessageFormatand converts classes of the java.time package intoDateobjects- Author:
- Guillaume Toison
-
-
Constructor Summary
Constructors Constructor Description MessageFormatWrapper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.Stringformat(java.lang.String pattern, java.util.Locale locale, java.lang.Object... arguments)
-
-
-
Method Detail
-
format
public static java.lang.String format(java.lang.String pattern, java.util.Locale locale, java.lang.Object... arguments)- 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:
MessageFormat.format(java.lang.Object[],java.lang.StringBuffer, java.text.FieldPosition)
-
-