static InputStream getResourceAsStream ( final String name ) { if ( System . getSecurityManager ( ) == null ) return Thread . currentThread ( ) . getContextClassLoader ( ) . getResourceAsStream ( name ) ; return AccessController . doPrivileged ( new PrivilegedAction < InputStream > ( ) { public InputStream run ( ) { return Thread . currentThread ( ) . getContextClassLoader ( ) . getResourceAsStream ( name ) ; } } ) ; }
Get the input stream for a resource in the context class loader