Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
711:scripting_advanced [2025/04/04 11:55] – [Advanced Scripting] Weinlein, Thomas711:scripting_advanced [2025/04/04 11:58] (current) – [Advanced Scripting] Weinlein, Thomas
Line 15: Line 15:
 </code> </code>
  
-Stages will prevent access to all other Java API and will log error message indicating the unavailable class that needs whitelisting.+Stages will prevent access to all other Java API and will log an error message indicating the unavailable class that needs whitelisting.
  
 File system access also needs explicit permission via configuration. File system access also needs explicit permission via configuration.
Line 51: Line 51:
 </code> </code>
  
-Please ensure the returned streams are closed after usage.+Please ensure the returned streams are **closed after usage**.
  
 e.g. e.g.
  
 <code javascript> <code javascript>
-var reader = new java.io.BufferedReader(new java.io.InputStreamReader(Files.newInputStream("report-data.json")));+var reader = new java.io.BufferedReader(new java.io.InputStreamReader(Files.newInputStream("report-data.csv")));
 try { try {
     while ((rline = reader.readLine()) != null) {     while ((rline = reader.readLine()) != null) {