FileDocCategorySizeDatePackage
ResourceLoader.javaAPI DocJava SE 5 API1260Fri Aug 26 14:58:20 BST 2005javax.swing.text.html.parser

ResourceLoader

public class ResourceLoader extends Object implements PrivilegedAction
Simple class to load resources using the 1.2 security model. Since the html support is loaded lazily, it's resources are potentially fetched with applet code in the call stack. By providing this functionality in a class that is only built on 1.2, reflection can be used from the code that is also built on 1.1 to call this functionality (and avoid the evils of preprocessing). This functionality is called from ParserDelegator.getResourceAsStream.
author
Timothy Prinzing
version
1.6 12/19/03

Fields Summary
private String
name
Constructors Summary
ResourceLoader(String name)

	this.name = name;
    
Methods Summary
public static java.io.InputStreamgetResourceAsStream(java.lang.String name)

	java.security.PrivilegedAction a = new ResourceLoader(name);
        return (InputStream) java.security.AccessController.doPrivileged(a);
    
public java.lang.Objectrun()

	Object o = ParserDelegator.class.getResourceAsStream(name);
	return o;