/** * Set the input script * @param scriptAsString */ public void setScript(String scriptAsString) { try { URL url = resolveURL(scriptAsString); m_inputStream = url.openStream(); } catch (MalformedURLException e) { //Encapsulate the string within m_inputStream = new ByteArrayInputStream(scriptAsString.getBytes()); } catch (IOException e) { //Error reading from the URL m_inputStream = null; } compileScriptAndKeep(); }
/** * Set the input script * @param scriptAsString */ public void setScript(String scriptAsString) { try { URL url = resolveURL(scriptAsString); m_inputStream = url.openStream(); } catch (MalformedURLException e) { //Encapsulate the string within m_inputStream = new ByteArrayInputStream(scriptAsString.getBytes()); } catch (IOException e) { //Error reading from the URL m_inputStream = null; } compileScriptAndKeep(); }
/** * Set the input script * @param scriptAsString */ public void setScript(String scriptAsString) { try { URL url = resolveURL(scriptAsString); m_inputStream = url.openStream(); } catch (MalformedURLException e) { //Encapsulate the string within m_inputStream = new ByteArrayInputStream(scriptAsString.getBytes()); } catch (IOException e) { //Error reading from the URL m_inputStream = null; } compileScriptAndKeep(); }
/** * Set the input script * @param scriptAsString */ public void setScript(String scriptAsString) { try { URL url = resolveURL(scriptAsString); m_inputStream = url.openStream(); } catch (MalformedURLException e) { //Encapsulate the string within m_inputStream = new ByteArrayInputStream(scriptAsString.getBytes()); } catch (IOException e) { //Error reading from the URL m_inputStream = null; } compileScriptAndKeep(); }