Package org.jruby.runtime.load

Examples of org.jruby.runtime.load.LoadServiceResourceInputStream


        String resourceName = "/builtin/" + name + ".rb";
        InputStream in = getClass().getResourceAsStream(resourceName);

        if (in == null) throw runtime.newIOError("Resource not found: " + resourceName);

        runtime.loadFile(name, new LoadServiceResourceInputStream(in), wrap);
       
        in.close();
    }
View Full Code Here

TOP

Related Classes of org.jruby.runtime.load.LoadServiceResourceInputStream

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.