327 * </pre></blockquote>
328 *
329 * <h4><a id="synchronization">Synchronization</a></h4>
330 *
331 * <p>
332 * Message formats are not synchronized.
333 * It is recommended to create separate format instances for each thread.
334 * If multiple threads access a format concurrently, it must be synchronized
335 * externally.
336 *
337 * @see java.util.Locale
338 * @see Format
339 * @see NumberFormat
340 * @see DecimalFormat
341 * @see DecimalFormatSymbols
342 * @see ChoiceFormat
343 * @see DateFormat
344 * @see SimpleDateFormat
345 *
346 * @author Mark Davis
347 */
348
349 public class MessageFormat extends Format {
350
351 private static final long serialVersionUID = 6479157306784022952L;
352
353 /**
354 * Constructs a MessageFormat for the default
355 * {@link java.util.Locale.Category#FORMAT FORMAT} locale and the
356 * specified pattern.
357 * The constructor first sets the locale, then parses the pattern and
358 * creates a list of subformats for the format elements contained in it.
359 * Patterns and their interpretation are specified in the
360 * <a href="#patterns">class description</a>.
361 *
362 * @param pattern the pattern for this message format
363 * @exception IllegalArgumentException if the pattern is invalid
364 * @exception NullPointerException if {@code pattern} is
365 * {@code null}
366 */
|
327 * </pre></blockquote>
328 *
329 * <h4><a id="synchronization">Synchronization</a></h4>
330 *
331 * <p>
332 * Message formats are not synchronized.
333 * It is recommended to create separate format instances for each thread.
334 * If multiple threads access a format concurrently, it must be synchronized
335 * externally.
336 *
337 * @see java.util.Locale
338 * @see Format
339 * @see NumberFormat
340 * @see DecimalFormat
341 * @see DecimalFormatSymbols
342 * @see ChoiceFormat
343 * @see DateFormat
344 * @see SimpleDateFormat
345 *
346 * @author Mark Davis
347 * @since 1.1
348 */
349
350 public class MessageFormat extends Format {
351
352 private static final long serialVersionUID = 6479157306784022952L;
353
354 /**
355 * Constructs a MessageFormat for the default
356 * {@link java.util.Locale.Category#FORMAT FORMAT} locale and the
357 * specified pattern.
358 * The constructor first sets the locale, then parses the pattern and
359 * creates a list of subformats for the format elements contained in it.
360 * Patterns and their interpretation are specified in the
361 * <a href="#patterns">class description</a>.
362 *
363 * @param pattern the pattern for this message format
364 * @exception IllegalArgumentException if the pattern is invalid
365 * @exception NullPointerException if {@code pattern} is
366 * {@code null}
367 */
|