Changeset 2237 for trunk/autoquest-core-tasktrees/src
- Timestamp:
- 12/08/17 14:47:56 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-core-tasktrees/src/main/java/de/ugoe/cs/autoquest/tasktrees/temporalrelation/utils/TaskTreeEncoder.java
r1852 r2237 18 18 import java.io.FileOutputStream; 19 19 import java.io.PrintStream; 20 import java.io.UnsupportedEncodingException; 20 21 import java.util.HashMap; 21 22 import java.util.List; … … 57 58 PrintStream out = null; 58 59 try { 59 out = new PrintStream(new FileOutputStream("userSessions.txt") );60 out = new PrintStream(new FileOutputStream("userSessions.txt"), true, "UTF-8"); 60 61 for (IUserSession session : userSessions) { 61 62 encode(session, out); 62 63 } 64 } 65 catch (UnsupportedEncodingException e) { 66 // must not happen as the encoding should be correct 67 throw new RuntimeException("programming error", e); 63 68 } 64 69 finally { … … 77 82 PrintStream out = null; 78 83 try { 79 out = new PrintStream(new FileOutputStream("taskInstanceList.txt") );84 out = new PrintStream(new FileOutputStream("taskInstanceList.txt"), true, "UTF-8"); 80 85 encode(taskInstanceList, out); 86 } 87 catch (UnsupportedEncodingException e) { 88 // must not happen as the encoding should be correct 89 throw new RuntimeException("programming error", e); 81 90 } 82 91 finally { … … 95 104 PrintStream out = null; 96 105 try { 97 out = new PrintStream(new FileOutputStream("task.txt") );106 out = new PrintStream(new FileOutputStream("task.txt"), true, "UTF-8"); 98 107 encode(task, out); 108 } 109 catch (UnsupportedEncodingException e) { 110 // must not happen as the encoding should be correct 111 throw new RuntimeException("programming error", e); 99 112 } 100 113 finally {
Note: See TracChangeset
for help on using the changeset viewer.