javax.swing.text.html.parser
Class ResourceLoader

java.lang.Object
  extended byjavax.swing.text.html.parser.ResourceLoader
All Implemented Interfaces:
java.security.PrivilegedAction

class ResourceLoader
extends Object
implements java.security.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

Field Summary
private  String name
           
 
Constructor Summary
(package private) ResourceLoader(String name)
           
 
Method Summary
static InputStream getResourceAsStream(String name)
           
 Object run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

private String name
Constructor Detail

ResourceLoader

ResourceLoader(String name)
Method Detail

run

public Object run()
Specified by:
run in interface java.security.PrivilegedAction

getResourceAsStream

public static InputStream getResourceAsStream(String name)