Changeset 303 for trunk/JFCMonitor/src
- Timestamp:
- 12/13/11 16:28:37 (13 years ago)
- Location:
- trunk/JFCMonitor/src/de/ugoe/cs/eventbench/jfcmonitor
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JFCMonitor/src/de/ugoe/cs/eventbench/jfcmonitor/JFCListener.java
r296 r303 38 38 public JFCListener(OutputStreamWriter outputWriter) { 39 39 this.outputWriter = outputWriter; 40 try { 41 outputWriter.write("<?xml version=\"1.0\" encoding=\"UTF-16\"?>" + ENDLINE); 42 outputWriter.write("<sessions>" + ENDLINE); 43 } catch (IOException e) { 44 System.err.println("JFCMONITOR -- Failure writing to log: " 45 + e.getMessage()); 46 } 40 47 } 41 48 -
trunk/JFCMonitor/src/de/ugoe/cs/eventbench/jfcmonitor/Runner.java
r295 r303 4 4 import java.awt.Toolkit; 5 5 import java.awt.event.AWTEventListener; 6 import java.io.File Writer;6 import java.io.FileOutputStream; 7 7 import java.io.IOException; 8 8 import java.io.OutputStreamWriter; … … 45 45 + ".log"; 46 46 47 FileWriter writer; 47 FileOutputStream fis; 48 OutputStreamWriter writer; 48 49 try { 49 50 // the writer is not closed explicitly! 50 writer = new FileWriter(logfileName, true);51 writer .write("<newsession />");51 fis = new FileOutputStream(logfileName, true); 52 writer = new OutputStreamWriter(fis, "UTF-16"); 52 53 } catch (IOException e) { 53 54 System.err.println("JFCMONITOR -- failure opening logfile: "
Note: See TracChangeset
for help on using the changeset viewer.