Changeset 1672 for trunk/autoquest-ui-core/src/main
- Timestamp:
- 08/13/14 16:42:52 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-ui-core/src/main/java/de/ugoe/cs/autoquest/commands/sequences/CMDgenerateReplayfile.java
r1670 r1672 156 156 * @return {@link OutputStreamWriter} that writes to the replay file 157 157 */ 158 pr otected OutputStreamWriter openReplayFile(String filename, String encoding) {158 private OutputStreamWriter openReplayFile(String filename) { 159 159 File file = new File(filename); 160 160 boolean fileCreated; … … 174 174 OutputStreamWriter writer = null; 175 175 try { 176 if (encoding.isEmpty()) { 177 writer = new OutputStreamWriter(new FileOutputStream(file)); 178 } 179 else { 180 writer = new OutputStreamWriter(new FileOutputStream(file), encoding); 181 } 176 writer = new OutputStreamWriter(new FileOutputStream(file), "UTF-16"); 182 177 } 183 178 catch (IOException e) { … … 186 181 } 187 182 return writer; 188 }189 190 /**191 * <p>192 * Helper function that opens the replay file for writing.193 * </p>194 *195 * @param filename196 * name and path of the replay file197 * @return {@link OutputStreamWriter} that writes to the replay file198 */199 protected OutputStreamWriter openReplayFile(String filename) {200 return openReplayFile(filename, "");201 183 } 202 184
Note: See TracChangeset
for help on using the changeset viewer.