Changeset 1672


Ignore:
Timestamp:
08/13/14 16:42:52 (10 years ago)
Author:
dmay
Message:

fully revert the changes to generateReplayfile

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/autoquest-ui-core/src/main/java/de/ugoe/cs/autoquest/commands/sequences/CMDgenerateReplayfile.java

    r1670 r1672  
    156156     * @return {@link OutputStreamWriter} that writes to the replay file 
    157157     */ 
    158     protected OutputStreamWriter openReplayFile(String filename, String encoding) { 
     158    private OutputStreamWriter openReplayFile(String filename) { 
    159159        File file = new File(filename); 
    160160        boolean fileCreated; 
     
    174174        OutputStreamWriter writer = null; 
    175175        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"); 
    182177        } 
    183178        catch (IOException e) { 
     
    186181        } 
    187182        return writer; 
    188     } 
    189  
    190     /** 
    191      * <p> 
    192      * Helper function that opens the replay file for writing. 
    193      * </p> 
    194      *  
    195      * @param filename 
    196      *            name and path of the replay file 
    197      * @return {@link OutputStreamWriter} that writes to the replay file 
    198      */ 
    199     protected OutputStreamWriter openReplayFile(String filename) { 
    200         return openReplayFile(filename, ""); 
    201183    } 
    202184 
Note: See TracChangeset for help on using the changeset viewer.