MCPcopy Index your code
hub / github.com/beanshell/beanshell / getResourceAsStream

Method getResourceAsStream

src/bsh/BshClassManager.java:264–276  ·  view source on GitHub ↗

Get a resource stream using the BeanShell classpath @param path should be an absolute path

( String path )

Source from the content-addressed store, hash-verified

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.

Callers 3

getCommandMethod · 0.95
loadSourceClassMethod · 0.95
getScriptSourceMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected