Commit f1af10c2 by Michael Koch Committed by Michael Koch

2003-12-19 Michael Koch <konqueror@gmx.de>

	* java/text/MessageFormat.java
	(MessageFormat): New constructor.

From-SVN: r74828
parent 177dcc4b
2003-12-19 Michael Koch <konqueror@gmx.de> 2003-12-19 Michael Koch <konqueror@gmx.de>
* java/text/MessageFormat.java
(MessageFormat): New constructor.
2003-12-19 Michael Koch <konqueror@gmx.de>
* gnu/java/net/protocol/jar/Handler.java * gnu/java/net/protocol/jar/Handler.java
(parseURL): New method. (parseURL): New method.
(toExternalForm): New method. (toExternalForm): New method.
......
...@@ -454,11 +454,25 @@ public class MessageFormat extends Format ...@@ -454,11 +454,25 @@ public class MessageFormat extends Format
* Creates a new MessageFormat object with * Creates a new MessageFormat object with
* the specified pattern * the specified pattern
* *
* @param aPattern The Pattern * @param pattern The Pattern
*/
public MessageFormat(String pattern)
{
this(pattern, Locale.getDefault());
}
/**
* Creates a new MessageFormat object with
* the specified pattern
*
* @param pattern The Pattern
* @param locale The Locale to use
*
* @since 1.4
*/ */
public MessageFormat (String pattern) public MessageFormat(String pattern, Locale locale)
{ {
locale = Locale.getDefault(); this.locale = locale;
applyPattern (pattern); applyPattern (pattern);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment