javax.swing.text.html.parser
Class ResourceLoader
java.lang.Object
javax.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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
name
private String name
ResourceLoader
ResourceLoader(String name)
run
public Object run()
- Specified by:
run
in interface java.security.PrivilegedAction
getResourceAsStream
public static InputStream getResourceAsStream(String name)