/** * Create a ScriptableInputStream. * @param in the InputStream to read from. * @param scope the top-level scope to create the object in. */ public ScriptableInputStream(InputStream in, Scriptable scope) throws IOException { super(in); this.scope = scope; enableResolveObject(true); Context cx = Context.getCurrentContext(); if (cx != null) { this.classLoader = cx.getApplicationClassLoader(); } }
/** * Create a ScriptableInputStream. * @param in the InputStream to read from. * @param scope the top-level scope to create the object in. */ public ScriptableInputStream(InputStream in, Scriptable scope) throws IOException { super(in); this.scope = scope; enableResolveObject(true); Context cx = Context.getCurrentContext(); if (cx != null) { this.classLoader = cx.getApplicationClassLoader(); } }
/** * Create a ScriptableInputStream. * @param in the InputStream to read from. * @param scope the top-level scope to create the object in. */ public ScriptableInputStream(InputStream in, Scriptable scope) throws IOException { super(in); this.scope = scope; enableResolveObject(true); Context cx = Context.getCurrentContext(); if (cx != null) { this.classLoader = cx.getApplicationClassLoader(); } }
/** * Create a ScriptableInputStream. * @param in the InputStream to read from. * @param scope the top-level scope to create the object in. */ public ScriptableInputStream(InputStream in, Scriptable scope) throws IOException { super(in); this.scope = scope; enableResolveObject(true); Context cx = Context.getCurrentContext(); if (cx != null) { this.classLoader = cx.getApplicationClassLoader(); } }
/** * Create a ScriptableInputStream. * @param in the InputStream to read from. * @param scope the top-level scope to create the object in. */ public ScriptableInputStream(InputStream in, Scriptable scope) throws IOException { super(in); this.scope = scope; enableResolveObject(true); Context cx = Context.getCurrentContext(); if (cx != null) { this.classLoader = cx.getApplicationClassLoader(); } }
/** * Create a ScriptableInputStream. * @param in the InputStream to read from. * @param scope the top-level scope to create the object in. */ public ScriptableInputStream(InputStream in, Scriptable scope) throws IOException { super(in); this.scope = scope; enableResolveObject(true); Context cx = Context.getCurrentContext(); if (cx != null) { this.classLoader = cx.getApplicationClassLoader(); } }