Get a resource stream using the BeanShell classpath @param path should be an absolute path
( String path )
| 262 | @param path should be an absolute path |
| 263 | */ |
| 264 | public InputStream getResourceAsStream( String path ) |
| 265 | { |
| 266 | InputStream in = null; |
| 267 | if ( externalClassLoader != null ) |
| 268 | { |
| 269 | // classloader wants no leading slash |
| 270 | in = externalClassLoader.getResourceAsStream( path.substring(1) ); |
| 271 | } |
| 272 | if ( in == null ) |
| 273 | in = Interpreter.class.getResourceAsStream( path ); |
| 274 | |
| 275 | return in; |
| 276 | } |
| 277 | |
| 278 | /** |
| 279 | Cache info about whether name is a class or not. |
no outgoing calls
no test coverage detected