Changeset 884
- Timestamp:
- 10/16/12 08:32:56 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-htmlmonitor/src/main/java/de/ugoe/cs/autoquest/htmlmonitor/HtmlMonitorServlet.java
r879 r884 70 70 (request.getPathInfo().endsWith("/script/autoquest-htmlmonitor.js"))) 71 71 { 72 InputStream script= null;72 BufferedReader reader = null; 73 73 74 74 try { 75 script = this.getClass().getClassLoader().getResourceAsStream75 InputStream script = this.getClass().getClassLoader().getResourceAsStream 76 76 ("autoquest-htmlmonitor.js"); 77 77 … … 80 80 } 81 81 else { 82 BufferedReader reader = new BufferedReader(new InputStreamReader(script));82 reader = new BufferedReader(new InputStreamReader(script, "UTF-8")); 83 83 PrintWriter output = response.getWriter(); 84 84 String line; … … 96 96 } 97 97 finally { 98 if ( script!= null) {99 script.close();98 if (reader != null) { 99 reader.close(); 100 100 } 101 101 }
Note: See TracChangeset
for help on using the changeset viewer.