javax.swing.text.html.parser
Class ResourceLoader
java.lang.Object
|
+--javax.swing.text.html.parser.ResourceLoader
- All Implemented Interfaces:
- PrivilegedAction
- 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.
- Version:
- 1.4 12/03/01
- 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()
- Description copied from interface:
PrivilegedAction
- Enabled: Performs the computation. This method will be called by
AccessController.doPrivileged
after enabling privileges.
- Specified by:
run
in interface PrivilegedAction
- Returns:
- a class-dependent value that may represent the results of the
computation. Each class that implements
PrivilegedAction
should document what (if anything) this value represents. - See Also:
AccessController.doPrivileged(PrivilegedAction)
,
AccessController.doPrivileged(PrivilegedAction,
AccessControlContext)
getResourceAsStream
public static InputStream getResourceAsStream(String name)
comments?