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.res; |
22 package com.sun.org.apache.xml.internal.res; |
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; |
|
25 import java.util.ResourceBundle; |
|
26 import jdk.xml.internal.SecuritySupport; |
27 |
27 |
28 /** |
28 /** |
29 * A utility class for issuing XML error messages. |
29 * A utility class for issuing XML error messages. |
30 * @xsl.usage internal |
30 * @xsl.usage internal |
31 */ |
31 */ |
34 |
34 |
35 /** The local object to use. */ |
35 /** The local object to use. */ |
36 protected Locale fLocale = Locale.getDefault(); |
36 protected Locale fLocale = Locale.getDefault(); |
37 |
37 |
38 /** The language specific resource object for XML messages. */ |
38 /** The language specific resource object for XML messages. */ |
39 private static ListResourceBundle XMLBundle = null; |
39 private static ResourceBundle XMLBundle = null; |
40 |
40 |
41 /** The class name of the XML error message string table. */ |
41 /** The class name of the XML error message string table. */ |
42 private static final String XML_ERROR_RESOURCES = |
42 private static final String XML_ERROR_RESOURCES = |
43 "com.sun.org.apache.xml.internal.res.XMLErrorResources"; |
43 "com.sun.org.apache.xml.internal.res.XMLErrorResources"; |
44 |
44 |
101 * @param args The arguments to be used as replacement text |
101 * @param args The arguments to be used as replacement text |
102 * in the message created. |
102 * in the message created. |
103 * |
103 * |
104 * @return The formatted message string. |
104 * @return The formatted message string. |
105 */ |
105 */ |
106 public static final String createMsg(ListResourceBundle fResourceBundle, |
106 public static final String createMsg(ResourceBundle fResourceBundle, |
107 String msgKey, Object args[]) //throws Exception |
107 String msgKey, Object args[]) //throws Exception |
108 { |
108 { |
109 |
109 |
110 String fmsg = null; |
110 String fmsg = null; |
111 boolean throwex = false; |
111 boolean throwex = false; |