src/java.xml/share/classes/com/sun/org/apache/xml/internal/serializer/utils/Messages.java
equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * reserved comment block |
2 * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT REMOVE OR ALTER! |
3 * @LastModified: Sep 2017 |
4 */ |
4 */ |
5 /* |
5 /* |
6 * Licensed to the Apache Software Foundation (ASF) under one or more |
6 * Licensed to the Apache Software Foundation (ASF) under one or more |
7 * contributor license agreements. See the NOTICE file distributed with |
7 * contributor license agreements. See the NOTICE file distributed with |
8 * this work for additional information regarding copyright ownership. |
8 * this work for additional information regarding copyright ownership. |
19 * limitations under the License. |
19 * limitations under the License. |
20 */ |
20 */ |
21 |
21 |
22 package com.sun.org.apache.xml.internal.serializer.utils; |
22 package com.sun.org.apache.xml.internal.serializer.utils; |
23 |
23 |
24 import com.sun.org.apache.xalan.internal.utils.SecuritySupport; |
|
25 import java.util.ListResourceBundle; |
|
26 import java.util.Locale; |
24 import java.util.Locale; |
27 import java.util.MissingResourceException; |
|
28 import java.util.ResourceBundle; |
25 import java.util.ResourceBundle; |
|
26 import jdk.xml.internal.SecuritySupport; |
29 |
27 |
30 /** |
28 /** |
31 * A utility class for issuing error messages. |
29 * A utility class for issuing error messages. |
32 * |
30 * |
33 * A user of this class normally would create a singleton |
31 * A user of this class normally would create a singleton |
97 { |
95 { |
98 /** The local object to use. */ |
96 /** The local object to use. */ |
99 private final Locale m_locale = Locale.getDefault(); |
97 private final Locale m_locale = Locale.getDefault(); |
100 |
98 |
101 /** The language specific resource object for messages. */ |
99 /** The language specific resource object for messages. */ |
102 private ListResourceBundle m_resourceBundle; |
100 private ResourceBundle m_resourceBundle; |
103 |
101 |
104 /** The class name of the error message string table with no language suffix. */ |
102 /** The class name of the error message string table with no language suffix. */ |
105 private String m_resourceBundleName; |
103 private String m_resourceBundleName; |
106 |
104 |
107 |
105 |
171 * in the message created. |
169 * in the message created. |
172 * |
170 * |
173 * @return The formatted message string. |
171 * @return The formatted message string. |
174 * @xsl.usage internal |
172 * @xsl.usage internal |
175 */ |
173 */ |
176 private final String createMsg( |
174 private final String createMsg(ResourceBundle fResourceBundle, String msgKey, |
177 ListResourceBundle fResourceBundle, |
175 Object args[]) //throws Exception |
178 String msgKey, |
|
179 Object args[]) //throws Exception |
|
180 { |
176 { |
181 |
177 |
182 String fmsg = null; |
178 String fmsg = null; |
183 boolean throwex = false; |
179 boolean throwex = false; |
184 String msg = null; |
180 String msg = null; |