src/share/classes/com/sun/tools/doclets/formats/html/markup/HtmlWriter.java

changeset 1740
ce4f0769b4b2
parent 1737
7a9ef837e57f
child 1746
bd51ca92c013
equal deleted inserted replaced
1739:e6c5b5ee9fac 1740:ce4f0769b4b2
25 25
26 package com.sun.tools.doclets.formats.html.markup; 26 package com.sun.tools.doclets.formats.html.markup;
27 27
28 import java.io.*; 28 import java.io.*;
29 import java.util.*; 29 import java.util.*;
30 import java.util.regex.Matcher;
31 import java.util.regex.Pattern;
30 32
31 import com.sun.tools.doclets.internal.toolkit.*; 33 import com.sun.tools.doclets.internal.toolkit.*;
32 import com.sun.tools.doclets.internal.toolkit.util.*; 34 import com.sun.tools.doclets.internal.toolkit.util.*;
33 35
34 /** 36 /**
250 * 252 *
251 * @param key the key to look for in the configuration file 253 * @param key the key to look for in the configuration file
252 * @return a content tree for the text 254 * @return a content tree for the text
253 */ 255 */
254 public Content getResource(String key) { 256 public Content getResource(String key) {
255 return new StringContent(configuration.getText(key)); 257 return configuration.getResource(key);
256 } 258 }
257 259
258 /** 260 /**
259 * Get the configuration string as a content. 261 * Get the configuration string as a content.
260 * 262 *
261 * @param key the key to look for in the configuration file 263 * @param key the key to look for in the configuration file
262 * @param a1 string argument added to configuration text 264 * @param o string or content argument added to configuration text
263 * @return a content tree for the text 265 * @return a content tree for the text
264 */ 266 */
265 public Content getResource(String key, String a1) { 267 public Content getResource(String key, Object o) {
266 return new RawHtml(configuration.getText(key, a1)); 268 return configuration.getResource(key, o);
267 } 269 }
268 270
269 /** 271 /**
270 * Get the configuration string as a content. 272 * Get the configuration string as a content.
271 * 273 *
272 * @param key the key to look for in the configuration file 274 * @param key the key to look for in the configuration file
273 * @param a1 string argument added to configuration text 275 * @param o1 string or content argument added to configuration text
274 * @param a2 string argument added to configuration text 276 * @param o2 string or content argument added to configuration text
275 * @return a content tree for the text 277 * @return a content tree for the text
276 */ 278 */
277 public Content getResource(String key, String a1, String a2) { 279 public Content getResource(String key, Object o0, Object o1) {
278 return new RawHtml(configuration.getText(key, a1, a2)); 280 return configuration.getResource(key, o0, o1);
279 } 281 }
280 282
281 /** 283 /**
282 * Returns an HtmlTree for the SCRIPT tag. 284 * Returns an HtmlTree for the SCRIPT tag.
283 * 285 *

mercurial